[ https://issues.apache.org/jira/browse/UIMA-6183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jörg Waitelonis updated UIMA-6183: ---------------------------------- 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) was: 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: RutaBasic beginAnchor = stream.getBeginAnchor(begin); > NullPointerException in RutaLiteralMatcher.java:72 > --------------------------------------------------- > > Key: UIMA-6183 > URL: https://issues.apache.org/jira/browse/UIMA-6183 > Project: UIMA > Issue Type: Bug > Components: Ruta > Affects Versions: 2.8.0ruta > Environment: UIMA Rute 2.8.0 workbench in fresh installation of > Eclipse IDE for Enterprise Java Developers. (Version: 2019-12 (4.14.0) Build > id: 20191212-1212) on MacOS 10.12.6 > Reporter: Jörg Waitelonis > Priority: Major > > 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) -- This message was sent by Atlassian Jira (v8.3.4#803005)