Prevent NPE when checking for monitoring operations

merge-requests/559/head
Saad Sahibjan 5 years ago
parent c28a1b3876
commit b8197bc182

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

Loading…
Cancel
Save