Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-03-10 07:38:50 -0500
committerAlexander Kurtakov2017-03-10 08:05:19 -0500
commita7901b972df99b6a08313c7d7e5e508b4a19908e (patch)
treef2a9430069410a77ba7df4d820eba3a08bae33d4 /changelog
parenta29efeaac034cba9fe7939613232db0de386c1e4 (diff)
downloadorg.eclipse.linuxtools-a7901b972df99b6a08313c7d7e5e508b4a19908e.tar.gz
org.eclipse.linuxtools-a7901b972df99b6a08313c7d7e5e508b4a19908e.tar.xz
org.eclipse.linuxtools-a7901b972df99b6a08313c7d7e5e508b4a19908e.zip
changelog: Fix NPE in hyperlink detector.
Happens for file that don't exist. Change-Id: I8c4042515c0e9d54f3125c0fc232f63bd3605342 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-on: https://git.eclipse.org/r/92765 Tested-by: Hudson CI
Diffstat (limited to 'changelog')
-rw-r--r--changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/GNUHyperlinkDetector.java2
1 files changed, 1 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 2a0c936551..a16dfbddfe 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
@@ -107,7 +107,7 @@ public class GNUHyperlinkDetector extends AbstractHyperlinkDetector {
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IFile fileLoc = (IFile) root.findMember(documentLocation.append(line));
- if (fileLoc.exists()) {
+ if (fileLoc != null && fileLoc.exists()) {
return new IHyperlink[] { new FileHyperlink(pathRegion, fileLoc) };
}

Back to the top