Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'changelog')
-rw-r--r--changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/GNUHyperlinkDetector.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/GNUHyperlinkDetector.java b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/GNUHyperlinkDetector.java
index b032078a9a..00c4068418 100644
--- a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/GNUHyperlinkDetector.java
+++ b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/GNUHyperlinkDetector.java
@@ -45,7 +45,11 @@ public class GNUHyperlinkDetector extends AbstractHyperlinkDetector {
if (buffer == null) {
return null;
}
- documentLocation = buffer.getLocation().removeLastSegments(1);
+ IPath p = buffer.getLocation();
+ if (p == null) {
+ return null;
+ }
+ documentLocation = p.removeLastSegments(1);
}
IDocument thisDoc = textViewer.getDocument();

Back to the top