show implementations: check if sources are attached (IDEA-137734)

This commit is contained in:
Anna Kozlova
2015-03-23 17:57:16 +01:00
parent 4d079801bf
commit 7ebebc182d
@@ -148,6 +148,11 @@ public class ShowImplementationsAction extends AnAction implements PopupAction {
}
}
//check attached sources if any
if (element instanceof PsiCompiledElement) {
element = element.getNavigationElement();
}
String text = "";
PsiElement[] impls = new PsiElement[0];
if (element != null) {