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

org.apache.uima.simpleserver.config.impl.SimpleFilterImpl.match() can cause a null pointer exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.2S
    • 2.3S
    • Sandbox-SimpleServer
    • None

    Description

      in org.apache.uima.simpleserver.config.impl.SimpleFilterImpl

      private final boolean match(Stack<String> stack, FeatureStructure fs) {
      ...
      fs can be null (if a non-leave feature in the feature path is null) but that is not checked for.

      Suggested fix:
      private final boolean match(Stack<String> stack, FeatureStructure fs) {
      if (fs == null)

      { return (this.getCondition().getConditionType() == FilterOp.NULL); }

      if (stack.isEmpty()) {
      ...

      Attachments

        Activity

          People

            twgoetz Thilo Goetz
            thampp Thomas Hampp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: