if (!params)
return Empty;
- CheckResult::Ptr cr = new CheckResult();
-
- Dictionary::Ptr vcr = params->Get("cr");
- Array::Ptr vperf = vcr->Get("performance_data");
- vcr->Remove("performance_data");
+ CheckResult::Ptr cr;
+ Array::Ptr vperf;
+
+ 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);
+ }
- Deserialize(cr, params->Get("cr"), true);
+ if (!cr)
+ return Empty;
Array::Ptr rperf = new Array();
return Empty;
}
- CheckResult::Ptr cr = new CheckResult();
+ CheckResult::Ptr cr;
- Dictionary::Ptr vcr = params->Get("cr");
- Array::Ptr vperf = vcr->Get("performance_data");
- vcr->Remove("performance_data");
-
- Deserialize(cr, params->Get("cr"), true);
+ 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);
+ }
NotificationType type = static_cast<NotificationType>(static_cast<int>(params->Get("type")));
String author = params->Get("author");
return Empty;
}
- CheckResult::Ptr cr = new CheckResult();
+ CheckResult::Ptr cr;
- Dictionary::Ptr vcr = params->Get("cr");
- Array::Ptr vperf = vcr->Get("performance_data");
- vcr->Remove("performance_data");
-
- Deserialize(cr, params->Get("cr"), true);
+ 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);
+ }
NotificationType type = static_cast<NotificationType>(static_cast<int>(params->Get("type")));
String author = params->Get("author");
return Empty;
}
- CheckResult::Ptr cr = new CheckResult();
+ CheckResult::Ptr cr;
- Dictionary::Ptr vcr = params->Get("cr");
- Array::Ptr vperf = vcr->Get("performance_data");
- vcr->Remove("performance_data");
-
- Deserialize(cr, params->Get("cr"), true);
+ 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);
+ }
NotificationType type = static_cast<NotificationType>(static_cast<int>(params->Get("type")));
String author = params->Get("author");