summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCong Wang2013-04-04 14:37:53 (EDT)
committerChris Recoskie2013-04-04 14:37:53 (EDT)
commit7208b7ebdd851dda087d5ef1f618171eaa6ad515 (patch)
treecff65fae66d4f5ccdfa711cb97ac205e4ed1a2bf
parent78afdc5a718cb9dfe17fc6608bc5310956e59f03 (diff)
downloadorg.eclipse.ptp-7208b7ebdd851dda087d5ef1f618171eaa6ad515.zip
org.eclipse.ptp-7208b7ebdd851dda087d5ef1f618171eaa6ad515.tar.gz
org.eclipse.ptp-7208b7ebdd851dda087d5ef1f618171eaa6ad515.tar.bz2
Bug 404923 - NPE if double click previous search result with project
closed
-rwxr-xr-xrdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/search/RemoteSearchResult.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/search/RemoteSearchResult.java b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/search/RemoteSearchResult.java
index f1271af..772e76e 100755
--- a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/search/RemoteSearchResult.java
+++ b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/search/RemoteSearchResult.java
@@ -133,6 +133,9 @@ public class RemoteSearchResult extends AbstractTextSearchResult implements IEdi
return fileInput.getFile().getLocationURI();
} else if (input instanceof ExternalEditorInput) {
ExternalEditorInput extInput = (ExternalEditorInput)input;
+ if (extInput.getTranslationUnit() == null) {
+ return null;
+ }
return extInput.getTranslationUnit().getLocationURI();
} else if (input instanceof IStorageEditorInput) {
try {