From 2bb959feda80a75525ed69442fef7f94e30e9c65 Mon Sep 17 00:00:00 2001 From: Mike Kucera Date: Mon, 7 Dec 2009 21:46:30 +0000 Subject: [PATCH] Bug 296881 - remote C/C++ search results not displaying properly --- .../src/org/eclipse/cdt/internal/ui/util/EditorUtility.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java index 2f4a8ee2f46..36eb72bbb15 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/EditorUtility.java @@ -359,7 +359,11 @@ public class EditorUtility { // crecoskie test // TODO FIXME // include entries don't handle URIs yet, so fake it out for now - if (includeReferences[j].isOnIncludeEntry(URIUtil.toPath(locationURI))) { + IPath path = URIUtil.toPath(locationURI); + if(path == null) + path = new Path(locationURI.getPath()); + + if (includeReferences[j].isOnIncludeEntry(path)) { context = projects[i]; break outerFor; }