Description
For certain combinations of document text and RuleElementLiteral in the script, method getAnnotation of class RutaLiteralMatcher throws a NullPointerException. This seems to be the case whenever the used string is a postfix or infix of a word in the document, but itself doesn't occur.
Example
Script
DECLARE testType; "est" {-> testType}; "est te"{-> testType};
Document
test test