mirror of https://github.com/Icinga/icinga2.git
Fix null pointer dereference in ConfigItem::Commit().
This commit is contained in:
parent
4bb808e0fa
commit
0029bc30b7
|
@ -263,8 +263,10 @@ DynamicObject::Ptr ConfigItem::Commit(void)
|
|||
/* Update or create the object and apply the configuration settings. */
|
||||
bool was_null = false;
|
||||
|
||||
if (!dobj && !IsAbstract()) {
|
||||
dobj = dtype->CreateObject(update);
|
||||
if (!dobj) {
|
||||
if (!IsAbstract())
|
||||
dobj = dtype->CreateObject(update);
|
||||
|
||||
was_null = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue