Details
Description
For some of the following rule/document examples a NullPointerException is thrown in RutaLiteralMatcher.java:72:
RUTA Script:
DECLARE Anno;
"W"{->MARK(Anno)};
Document content to reproduce:
<W ? > -> working
<W a > -> not working (NPE thrown)
<W a -> working
<W > -> not working (NPE thrown)
The NPE is thrown in line 72 of RutaLiteralMatcher.java:
71: RutaBasic beginAnchor = stream.getBeginAnchor(begin);
72: if (beginAnchor.getEnd() == end) {
(beginAnchor is null)