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

Ruta: RutaLiteralMatcher throws exception for special choice of string

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.0ruta
    • 2.8.1ruta, 3.0.1ruta
    • Ruta
    • None

    Description

      For certain combinations of document text and RuleElementLiteral in the script, method getAnnotation of class RutaLiteralMatcher throws a NullPointerException.  This seems to be the case whenever the used string is a postfix or infix of a word in the document, but itself doesn't occur.

      Example

      Script

       

      DECLARE testType;
      "est" {-> testType};
      "est te"{-> testType};
      

      Document

       

      test test

       

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            pkluegl Peter Klügl
            Michael Stenger Michael Stenger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment