[ 
https://issues.apache.org/jira/browse/NIFI-11436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17711602#comment-17711602
 ] 

ASF subversion and git services commented on NIFI-11436:
--------------------------------------------------------

Commit ba93f607315b8a3a43c9fcd0c5fcb1b9668fb701 in nifi's branch 
refs/heads/main from Bryan Bende
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=ba93f60731 ]

NIFI-11436 Fix NPE during updateFlow when called from a replace request for a 
PG that is not under version control (#7167)



> FlowUpdateResource throws NPE if PG is not under version control
> ----------------------------------------------------------------
>
>                 Key: NIFI-11436
>                 URL: https://issues.apache.org/jira/browse/NIFI-11436
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.21.0
>            Reporter: Bryan Bende
>            Assignee: Bryan Bende
>            Priority: Major
>             Fix For: 2.0.0, 1.22.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> If the PG being updated is not under version control, then will encounter an 
> NPE when trying to retrieve the previous snapshot:
> {code:java}
> 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)
>                                                  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to