Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-6127

AttributeExpressionLanguage - 'match' and 'find' throw NPE when comparison object is a non existing flowfile attribute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0, 1.9.2
    • Core Framework
    • None

    Description

      MatchesEvaluator, line 56 - When the flow file attributes do not contain the attribute specified in the comparison portion of a 'matches' operation, the Pattern.compile(null) throws an NPE.

      Since there is no guarantee that a specified flow file attribute is present, this should simply return BooleanQueryResult(false) if the desired attribute does not exist.

      Attachments

        Issue Links

          Activity

            People

              mattyb149 Matt Burgess
              slyouts Steven Youtsey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h