To reproduce:
Run the script check_rules.groovy ("QA - Check rules") with the language tool checkbox ticked on a document that contains a segment marked as empty.
In the console, when reaching that segment, two errors are displayed:
Error: Uncatched exception in thread [AWT-EventQueue-0]
Error: java.lang.ArrayIndexOutOfBoundsException
Result:
The script stops and does not display any result.
Expected behaviour:
The segment should be ignored or marked as an untranslated segment.
As a sidenote, for anyone running into that error, the easy fix is to right click on the segment in the editor and click on "Remove translation" and then run the script again.
[EDIT] As Didier said, bear in mind that unless you set the segment back to empty, the source segment will appear in the target document.
Last edit: Damien Rembert 2018-06-14
Note that it will not have the same effect as a segment being empty. Without a translation, the source segment will appear in the target text.
Didier
Diff:
Fixed in SVN (/trunk, [r10430])
Didier
Related
Commit: [r10430]
Closed in the released version 4.1.5 update 1 of OmegaT.
Didier