This commit is contained in:
Alexey Kudravtsev
2012-06-18 14:36:56 +04:00
parent ace84254f0
commit 421c5772c1
2 changed files with 7 additions and 3 deletions
@@ -66,8 +66,11 @@ public class HighlightOverridingMethodsHandler extends HighlightUsagesHandlerBas
if (containingClass == null) continue;
for (PsiClass classToAnalyze : classes) {
if (InheritanceUtil.isInheritorOrSelf(classToAnalyze, containingClass, true)) {
addOccurrence(method.getNameIdentifier());
break;
PsiIdentifier identifier = method.getNameIdentifier();
if (identifier != null) {
addOccurrence(identifier);
break;
}
}
}
}