NIFI-10584: (#6478)

- Only including dependent values when they are non-null.
This commit is contained in:
Matt Gilman 2022-10-04 16:16:02 -04:00 committed by GitHub
parent 504baae227
commit 1e0cb03b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -454,12 +454,12 @@ public class StandardRuntimeManifestBuilder implements RuntimeManifestBuilder {
propertyDependency.setPropertyName(dependency.getPropertyName());
propertyDependency.setPropertyDisplayName(dependency.getPropertyDisplayName());
final List<String> values = new ArrayList<>();
final DependentValues dependentValues = dependency.getDependentValues();
if (dependentValues != null && dependentValues.getValues() != null) {
final List<String> values = new ArrayList();
values.addAll(dependentValues.getValues());
propertyDependency.setDependentValues(values);
}
propertyDependency.setDependentValues(values);
propertyDependencies.add(propertyDependency);
}
return propertyDependencies;