Merge branch 'master' into 'master'

Prevent NPE when checking for monitoring operations

See merge request entgra/carbon-device-mgt!559
merge-requests/560/head
Dharmakeerthi Lasantha 5 years ago
commit 7df4ab7334

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