-
Notifications
You must be signed in to change notification settings - Fork 1
Description
I'm not sure the exact trigger:
java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 10614
at com.jpetrak.gate.stringannotation.utils.TextChunk.getEndOffset(TextChunk.java:98)
at com.jpetrak.gate.stringannotation.regexp.JavaRegexpAnnotator.annotateMatch(JavaRegexpAnnotator.java:485)
at com.jpetrak.gate.stringannotation.regexp.JavaRegexpAnnotator.annotateChunk(JavaRegexpAnnotator.java:383)
at com.jpetrak.gate.stringannotation.regexp.JavaRegexpAnnotator.doExecute(JavaRegexpAnnotator.java:271)
at com.jpetrak.gate.stringannotation.regexp.JavaRegexpAnnotator.execute(JavaRegexpAnnotator.java:216)
at gate.util.Benchmark.executeWithBenchmarking(Benchmark.java:293)
at gate.creole.ConditionalSerialController.runComponent(ConditionalSerialController.java:172)
at gate.creole.SerialController.executeImpl(SerialController.java:158)
at gate.creole.ConditionalSerialAnalyserController.executeImpl(ConditionalSerialAnalyserController.java:225)
at gate.creole.ConditionalSerialAnalyserController.execute(ConditionalSerialAnalyserController.java:132)
at gate.util.Benchmark.executeWithBenchmarking(Benchmark.java:293)
at gate.gui.SerialControllerEditor$RunAction$1.run(SerialControllerEditor.java:1778)
at java.base/java.lang.Thread.run(Thread.java:829)
It looks like the code in annotateMatch doesn't check for a -1 returned by matcher.end