mirror of https://github.com/apache/nifi.git
NIFI-11039: Fixing bug when importing parameter providers from nifi-registry (#6868)
* NIFI-11039: Fixing NPE in registry retrieval * NIFI-11039: Fixing bug when importing parameter providers from nifi registry
This commit is contained in:
parent
cb77a96059
commit
8640989ad7
|
@ -252,7 +252,9 @@ public class StandardVersionedComponentSynchronizer implements VersionedComponen
|
|||
|
||||
context.getFlowManager().withParameterContextResolution(() -> {
|
||||
try {
|
||||
synchronize(group, versionedExternalFlow.getFlowContents(), versionedExternalFlow.getParameterContexts(), versionedExternalFlow.getParameterProviders());
|
||||
final Map<String, ParameterProviderReference> parameterProviderReferences = versionedExternalFlow.getParameterProviders() == null
|
||||
? new HashMap<>() : versionedExternalFlow.getParameterProviders();
|
||||
synchronize(group, versionedExternalFlow.getFlowContents(), versionedExternalFlow.getParameterContexts(), parameterProviderReferences);
|
||||
} catch (final ProcessorInstantiationException pie) {
|
||||
throw new RuntimeException(pie);
|
||||
}
|
||||
|
|
|
@ -5411,6 +5411,7 @@ public class StandardNiFiServiceFacade implements NiFiServiceFacade {
|
|||
externalFlow.setExternalControllerServices(flowSnapshot.getExternalControllerServices());
|
||||
externalFlow.setParameterContexts(flowSnapshot.getParameterContexts());
|
||||
externalFlow.setMetadata(externalFlowMetadata);
|
||||
externalFlow.setParameterProviders(flowSnapshot.getParameterProviders());
|
||||
|
||||
return externalFlow;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue