mirror of https://github.com/apache/nifi.git
NIFI-11978 Fix: NPE when trying to disable Management Controller Service
This closes #7637 Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
parent
c08560447f
commit
1e12800912
|
@ -284,7 +284,10 @@ public class StandardControllerServiceDAO extends ComponentDAO implements Contro
|
||||||
public void verifyUpdateReferencingComponents(final String controllerServiceId, final ScheduledState scheduledState, final ControllerServiceState controllerServiceState) {
|
public void verifyUpdateReferencingComponents(final String controllerServiceId, final ScheduledState scheduledState, final ControllerServiceState controllerServiceState) {
|
||||||
final ControllerServiceNode controllerService = locateControllerService(controllerServiceId);
|
final ControllerServiceNode controllerService = locateControllerService(controllerServiceId);
|
||||||
|
|
||||||
controllerService.getProcessGroup().verifyCanScheduleComponentsIndividually();
|
final ProcessGroup processGroup = controllerService.getProcessGroup();
|
||||||
|
if (processGroup != null) {
|
||||||
|
processGroup.verifyCanScheduleComponentsIndividually();
|
||||||
|
}
|
||||||
|
|
||||||
if (controllerServiceState != null) {
|
if (controllerServiceState != null) {
|
||||||
if (ControllerServiceState.ENABLED.equals(controllerServiceState)) {
|
if (ControllerServiceState.ENABLED.equals(controllerServiceState)) {
|
||||||
|
|
Loading…
Reference in New Issue