mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
CallHierarchy: Fixes a NullPointerException
This commit is contained in:
parent
0486d0c85a
commit
ddc8721872
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ public class FindNameForSelectionVisitor extends ASTVisitor {
|
||||||
|
|
||||||
public int visit(IASTDeclaration declaration) {
|
public int visit(IASTDeclaration declaration) {
|
||||||
IASTFileLocation loc= declaration.getFileLocation();
|
IASTFileLocation loc= declaration.getFileLocation();
|
||||||
if (!loc.getFileName().equals(fFilePath)) {
|
if (loc == null || !loc.getFileName().equals(fFilePath)) {
|
||||||
return PROCESS_SKIP;
|
return PROCESS_SKIP;
|
||||||
}
|
}
|
||||||
int offset= loc.getNodeOffset();
|
int offset= loc.getNodeOffset();
|
||||||
|
|
Loading…
Add table
Reference in a new issue