Minor: Fix NPE (EA-76742)

This commit is contained in:
Alexey Sedunov
2015-12-24 12:57:47 +03:00
committed by Alexey
parent 5b5e7fb9b7
commit c391882651
@@ -43,7 +43,7 @@ public class KotlinCallHierarchyProvider implements HierarchyProvider {
if (element == null) return null;
element = HierarchyUtils.getCallHierarchyElement(element);
if (element instanceof KtFile || element.getLanguage() != KotlinLanguage.INSTANCE) return null;
if (element instanceof KtFile || element == null || element.getLanguage() != KotlinLanguage.INSTANCE) return null;
return element;
}