Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception #30

Open
dconlan opened this issue May 9, 2023 · 0 comments
Open

Exception #30

dconlan opened this issue May 9, 2023 · 0 comments

Comments

@dconlan
Copy link

dconlan commented May 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant