From 7c7dced2f54dbf60ca99ff92a2238b0f10a5fd5d Mon Sep 17 00:00:00 2001 From: Denis Zhdanov Date: Fri, 2 Jul 2010 17:47:56 +0400 Subject: [PATCH] Added additional null check because got NPE with that at local environment --- .../com/intellij/codeInsight/navigation/GotoTargetHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/navigation/GotoTargetHandler.java b/platform/lang-impl/src/com/intellij/codeInsight/navigation/GotoTargetHandler.java index 7a17601f8c4b..5dea7421057b 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/navigation/GotoTargetHandler.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/navigation/GotoTargetHandler.java @@ -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); } }