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

MockPropertyValue.evaluateExpressionLanguage(FlowFile) cannot handle null inputs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0
    • None
    • None

    Description

      The method mentioned in the title line cannot handle null inputs, even though the main NiFi execution classes can handle that scenario. This forces hack to pass testing with nulls that looks like this:

      String val = flowFile != null ? context.getProperty(PROP).evaluateExpressionLanguage(flowfile).getValue() : context.getProperty(PROP).evaluateExpressionLanguage(new HashMap()).getValue();

      Attachments

        Activity

          People

            mike.thomsen Mike Thomsen
            mike.thomsen Mike Thomsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: