summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViolaine Batthish2013-05-06 16:17:48 (EDT)
committerChris Recoskie2013-05-06 16:21:25 (EDT)
commitef75617828f5fcaf8de3a530ee19bea0c90693a8 (patch)
treecc29b7cec542101baf6d44e71f0501c699be90d3
parent638e567df5bf4018ab77cebe524f5cc01423b564 (diff)
downloadorg.eclipse.ptp-ef75617828f5fcaf8de3a530ee19bea0c90693a8.zip
org.eclipse.ptp-ef75617828f5fcaf8de3a530ee19bea0c90693a8.tar.gz
org.eclipse.ptp-ef75617828f5fcaf8de3a530ee19bea0c90693a8.tar.bz2
Bug 407329 - Attempting to open an include file which is not found in
the build path produces exceptions
-rw-r--r--rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/editor/OpenIncludeAction.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/editor/OpenIncludeAction.java b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/editor/OpenIncludeAction.java
index 3df2d6a..421c395 100644
--- a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/editor/OpenIncludeAction.java
+++ b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/editor/OpenIncludeAction.java
@@ -107,7 +107,7 @@ public class OpenIncludeAction extends
String fullFileName= include.getFullFileName(); //the full path, if there is one
IProject project = include.getCProject().getProject();
- if (fullFileName != null) {
+ if (fullFileName != null && fullFileName.length()>0) {
// Bug 379298 - Open include file from Outline view throws errors for remote project
if (!isLocalServiceConfiguration(project)) { //files are on remote server
//get remote location information