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

ExtractHL7Attributes should better tolerate custom segments (e.g. Z segments)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.9.2
    • 1.10.0
    • Extensions
    • OSX iMac

    Description

      If a user is processing an HL7 message that contains custom segments (e.g. Z segments), an NPE is thrown at line 288 in ExtractHL7Attributes.java upon encountering that segment. The call to segment.getNames() will return a list of Nulls from HAPI for this custom segment.

      Added a check whereby, if the user is using the "Use Segment Names" option in the ExtractHL7Attributes processor and the HL7 message being processed contains custom user segments (e.g., Z Segments), the code will downgrade to returning the Segment Label as it does when this option is not used. Without this a null pointer is thrown at line 288.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gteichrow Gary Teichrow
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Time Spent - 20m Remaining Estimate - 40m
                  40m
                  Logged:
                  Time Spent - 20m Remaining Estimate - 40m
                  20m