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,9 +297,11 @@ public final class StandardProcessScheduler implements ProcessScheduler {
|
|||
final Class<? extends ControllerService> serviceDefinition = descriptor.getControllerServiceDefinition();
|
||||
if ( serviceDefinition != null ) {
|
||||
final String serviceId = processContext.getProperty(descriptor).getValue();
|
||||
if ( serviceId != null ) {
|
||||
serviceIds.add(serviceId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
attemptOnScheduled: while (true) {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue