You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Peter Klügl (JIRA)" <de...@uima.apache.org> on 2015/02/10 22:08:11 UTC

[jira] [Resolved] (UIMA-4233) Ruta: NPE for Gather on optional rule element

     [ 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)