mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
Fix for : NPE in CTagEntry
This commit is contained in:
parent
ef2c62d0bf
commit
6d9f16002a
1 changed files with 4 additions and 1 deletions
|
@ -216,7 +216,10 @@ class CTagEntry{
|
|||
private char[][] getFunctionSignature() {
|
||||
String signature = (String) tagExtensionField.get(CTagsConsoleParser.SIGNATURE);
|
||||
|
||||
if (signature.equals("()")){ //$NON-NLS-1$
|
||||
//Under Exuberant CTags 5.5.4, in the C parsing mode: a function that doesn't take any parameters
|
||||
//will have no signature string (resulting in null)
|
||||
if (signature == null ||
|
||||
signature.equals("()")){ //$NON-NLS-1$
|
||||
char[][] voidSignature = new char[1][];
|
||||
voidSignature[0] = "void".toCharArray(); //$NON-NLS-1$
|
||||
return voidSignature;
|
||||
|
|
Loading…
Add table
Reference in a new issue