Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-6183

NullPointerException in RutaLiteralMatcher.java:72

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.0ruta
    • 2.8.1ruta, 3.0.1ruta
    • Ruta
    • None
    • 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

    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)

      Attachments

        Issue Links

          Activity

            People

              pkluegl Peter Klügl
              joergw Jörg Waitelonis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: