mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
Checkable#process_check_result(): don't pass NULL CR to Checkable#ProcessCheckResult()
It's ignored anyway.
This commit is contained in:
parent
a65f2d6b41
commit
55fc0e51ff
@ -14,7 +14,10 @@ static void CheckableProcessCheckResult(const CheckResult::Ptr& cr)
|
|||||||
ScriptFrame *vframe = ScriptFrame::GetCurrentFrame();
|
ScriptFrame *vframe = ScriptFrame::GetCurrentFrame();
|
||||||
Checkable::Ptr self = vframe->Self;
|
Checkable::Ptr self = vframe->Self;
|
||||||
REQUIRE_NOT_NULL(self);
|
REQUIRE_NOT_NULL(self);
|
||||||
self->ProcessCheckResult(cr);
|
|
||||||
|
if (cr) {
|
||||||
|
self->ProcessCheckResult(cr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Object::Ptr Checkable::GetPrototype()
|
Object::Ptr Checkable::GetPrototype()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user