summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCong Wang2013-04-04 14:37:53 (EDT)
committer Chris Recoskie2013-04-04 14:40:09 (EDT)
commitae8d6de2c4acbae63e9df7a015fe3ca7788963bb (patch)
tree97de760ce848a0aa0c5b5b1dc5c1d215b99b1ce9
parentdbc024acd622c71fb8a1702b36b0876bede94703 (diff)
downloadorg.eclipse.ptp-ae8d6de2c4acbae63e9df7a015fe3ca7788963bb.zip
org.eclipse.ptp-ae8d6de2c4acbae63e9df7a015fe3ca7788963bb.tar.gz
org.eclipse.ptp-ae8d6de2c4acbae63e9df7a015fe3ca7788963bb.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 {