uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Klügl (JIRA) <...@uima.apache.org>
Subject [jira] [Resolved] (UIMA-4233) Ruta: NPE for Gather on optional rule element
Date Tue, 10 Feb 2015 21:08:11 GMT

     [ https://issues.apache.org/jira/browse/UIMA-4233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Peter Klügl resolved UIMA-4233.
-------------------------------
    Resolution: Fixed

fixed

> Ruta: NPE for Gather on optional rule element
> ---------------------------------------------
>
>                 Key: UIMA-4233
>                 URL: https://issues.apache.org/jira/browse/UIMA-4233
>             Project: UIMA
>          Issue Type: Bug
>          Components: ruta
>    Affects Versions: 2.2.1ruta
>            Reporter: Peter Klügl
>            Assignee: Peter Klügl
>             Fix For: 2.3.0ruta
>
>
> A user reported on the mailing list:
> The following RUTA grammar:
> {noformat}
> DECLARE Annotation A;
> DECLARE Annotation B;
> DECLARE Annotation C(Annotation a, Annotation b);
> W{REGEXP("A")->MARK(A)};
> W{REGEXP("B")->MARK(B)};
> A B?{-> GATHER(C, 1, 2, "a" = 1, "b" = 2)};
> {noformat}
> Run s as expected on the input "A B C", but gets a NullPointerException on
> "A X C", presumably because the 2 index is not mapped to anything.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message