Prevent NPE when checking for monitoring operations

4.x.x
Saad Sahibjan 5 years ago
parent c28a1b3876
commit b8197bc182

@ -875,7 +875,7 @@ public class OperationManagerImpl implements OperationManager {
List<MonitoringOperation> monitoringOperations = operationMonitoringTaskConfig.getMonitoringOperation(); List<MonitoringOperation> monitoringOperations = operationMonitoringTaskConfig.getMonitoringOperation();
MonitoringOperation currentMonitoringOperation = null; MonitoringOperation currentMonitoringOperation = null;
for (MonitoringOperation monitoringOperation : monitoringOperations) { for (MonitoringOperation monitoringOperation : monitoringOperations) {
if (operation.getCode().equals(monitoringOperation.getTaskName())) { if (monitoringOperation.getTaskName().equals(operation.getCode())) {
currentMonitoringOperation = monitoringOperation; currentMonitoringOperation = monitoringOperation;
break; break;
} }

Loading…
Cancel
Save