mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixed NPE.
This commit is contained in:
parent
687eb68210
commit
03762755b8
1 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,9 @@ public class DefinitionFinder2 {
|
|||
return null;
|
||||
}
|
||||
IIndexBinding binding = index.adaptBinding(declarator.getName().resolveBinding());
|
||||
if (binding == null) {
|
||||
return null;
|
||||
}
|
||||
return getDefinition(binding, astCache, index);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue