Added additional null check because got NPE with that at local environment

This commit is contained in:
Denis Zhdanov
2010-07-02 18:29:15 +04:00
parent ed1bcc654e
commit 7c7dced2f5
@@ -56,7 +56,7 @@ public abstract class GotoTargetHandler implements CodeInsightActionHandler {
try {
GotoData gotoData = getSourceAndTargetElements(editor, file);
if (gotoData != null) {
if (gotoData != null && gotoData.source != null) {
show(project, editor, file, gotoData.source, gotoData.targets, gotoData.additionalActions);
}
}