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:
Mark Payne 2015-04-06 17:59:07 -04:00 committed by joewitt
parent 4a16845309
commit 3a2b12d7c9
1 changed files with 3 additions and 1 deletions

View File

@ -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 {