Prevent NPE when checking for monitoring operations

vpp
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