Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston2017-06-26 13:55:18 -0400
committerJeff Johnston2017-06-26 14:55:09 -0400
commitb77308e2c0018894de66bae72fee099b1c6fe9cd (patch)
treeebd903e4193a026c3144aafe9aaced60ba159e65 /changelog
parentd6417b1d9581d3877880bb8caa83e86f78f2adea (diff)
downloadorg.eclipse.linuxtools-b77308e2c0018894de66bae72fee099b1c6fe9cd.tar.gz
org.eclipse.linuxtools-b77308e2c0018894de66bae72fee099b1c6fe9cd.tar.xz
org.eclipse.linuxtools-b77308e2c0018894de66bae72fee099b1c6fe9cd.zip
Bug 518798 - ClassCastException in GNUFileEntryRule.evaluate
- add a check for GNUHyperlinkScanner being input to prevent ClassCastException Change-Id: I948613f24231e817284a163dd10d8bc832255a56 Reviewed-on: https://git.eclipse.org/r/100070 Tested-by: Hudson CI Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Diffstat (limited to 'changelog')
-rw-r--r--changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/GNUFileEntryRule.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/GNUFileEntryRule.java b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/GNUFileEntryRule.java
index 42b999349b..d8c44d542d 100644
--- a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/GNUFileEntryRule.java
+++ b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/GNUFileEntryRule.java
@@ -80,6 +80,9 @@ public class GNUFileEntryRule implements IPredicateRule {
c = scanner.read();
}
scanner.unread();
+ if (scanner instanceof GNUHyperlinkScanner) {
+ return ((GNUHyperlinkScanner)scanner).getDefaultToken();
+ }
return ((GNUElementScanner)scanner).getDefaultToken();
}

Back to the top