mirror of https://github.com/apache/nifi.git
NIFI-486: Fixed NPE that occurs if processor allows for controller service as optional property and no value set
Signed-off-by: joewitt <joewitt@apache.org>
This commit is contained in:
parent
4a16845309
commit
3a2b12d7c9
|
@ -297,7 +297,9 @@ public final class StandardProcessScheduler implements ProcessScheduler {
|
||||||
final Class<? extends ControllerService> serviceDefinition = descriptor.getControllerServiceDefinition();
|
final Class<? extends ControllerService> serviceDefinition = descriptor.getControllerServiceDefinition();
|
||||||
if ( serviceDefinition != null ) {
|
if ( serviceDefinition != null ) {
|
||||||
final String serviceId = processContext.getProperty(descriptor).getValue();
|
final String serviceId = processContext.getProperty(descriptor).getValue();
|
||||||
serviceIds.add(serviceId);
|
if ( serviceId != null ) {
|
||||||
|
serviceIds.add(serviceId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue