NIFI-10914 Adjusting input check for loading nested versioned flows (#6741)

This commit is contained in:
simonbence 2022-12-01 17:09:51 +01:00 committed by GitHub
parent 9a574c875e
commit 570fc7f1fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -2015,9 +2015,11 @@ public class ProcessGroupResource extends FlowUpdateResource<ProcessGroupImportE
final RegisteredFlowSnapshot flowSnapshot = getFlowFromRegistry(versionControlInfo);
// Step 3: Enrich version control info came from UI
if (flowSnapshot.getFlowContents() != null && flowSnapshot.getFlowContents().getVersionedFlowCoordinates() != null) {
if (flowSnapshot.getFlowContents() != null) {
final VersionedFlowCoordinates versionedFlowCoordinates = flowSnapshot.getFlowContents().getVersionedFlowCoordinates();
flowSnapshot.getFlowContents().getVersionedFlowCoordinates().setStorageLocation(versionedFlowCoordinates.getStorageLocation());
if (versionedFlowCoordinates != null) {
versionControlInfo.setStorageLocation(versionedFlowCoordinates.getStorageLocation());
}
}
// Step 4: Resolve Bundle info