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

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

Commit 7cb9de69c4c51e233088e0f423d0ceeba03e55b7 in nifi's branch 
refs/heads/support/nifi-1.x from Bryan Bende
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=7cb9de69c4 ]

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