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

FlowUpdateResource throws NPE if PG is not under version control

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.21.0
    • 2.0.0-M1, 1.22.0
    • None
    • None

    Description

      If the PG being updated is not under version control, then will encounter an NPE when trying to retrieve the previous snapshot:

      java.lang.NullPointerException: null                                      
      at org.apache.nifi.web.api.FlowUpdateResource.updateFlow(FlowUpdateResource.java:381)                                                                   
      at org.apache.nifi.web.api.FlowUpdateResource.lambda$submitFlowUpdateRequest$5(FlowUpdateResource.java:282)                                                 

      Attachments

        Issue Links

          Activity

            People

              bbende Bryan Bende
              bbende Bryan Bende
              Votes:
              0 Vote for this issue
              Watchers:
              2 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