if (params->Contains("cr")) {
cr = new CheckResult();
Dictionary::Ptr vcr = params->Get("cr");
- vperf = vcr->Get("performance_data");
- vcr->Remove("performance_data");
- Deserialize(cr, vcr, true);
+
+ if (vcr && vcr->Contains("performance_data")) {
+ vperf = vcr->Get("performance_data");
+
+ if (vperf)
+ vcr->Remove("performance_data");
+
+ Deserialize(cr, vcr, true);
+ }
}
if (!cr)
}
CheckResult::Ptr cr;
+ Array::Ptr vperf;
if (params->Contains("cr")) {
cr = new CheckResult();
Dictionary::Ptr vcr = params->Get("cr");
- Array::Ptr vperf = vcr->Get("performance_data");
- vcr->Remove("performance_data");
- Deserialize(cr, vcr, true);
+
+ if (vcr && vcr->Contains("performance_data")) {
+ vperf = vcr->Get("performance_data");
+
+ if (vperf)
+ vcr->Remove("performance_data");
+
+ Deserialize(cr, vcr, true);
+ }
}
NotificationType type = static_cast<NotificationType>(static_cast<int>(params->Get("type")));
}
CheckResult::Ptr cr;
+ Array::Ptr vperf;
if (params->Contains("cr")) {
cr = new CheckResult();
Dictionary::Ptr vcr = params->Get("cr");
- Array::Ptr vperf = vcr->Get("performance_data");
- vcr->Remove("performance_data");
- Deserialize(cr, vcr, true);
+
+ if (vcr && vcr->Contains("performance_data")) {
+ vperf = vcr->Get("performance_data");
+
+ if (vperf)
+ vcr->Remove("performance_data");
+
+ Deserialize(cr, vcr, true);
+ }
}
NotificationType type = static_cast<NotificationType>(static_cast<int>(params->Get("type")));
}
CheckResult::Ptr cr;
+ Array::Ptr vperf;
if (params->Contains("cr")) {
cr = new CheckResult();
Dictionary::Ptr vcr = params->Get("cr");
- Array::Ptr vperf = vcr->Get("performance_data");
- vcr->Remove("performance_data");
- Deserialize(cr, vcr, true);
+
+ if (vcr && vcr->Contains("performance_data")) {
+ vperf = vcr->Get("performance_data");
+
+ if (vperf)
+ vcr->Remove("performance_data");
+
+ Deserialize(cr, vcr, true);
+ }
}
NotificationType type = static_cast<NotificationType>(static_cast<int>(params->Get("type")));