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. */
|
/* Update or create the object and apply the configuration settings. */
|
||||||
bool was_null = false;
|
bool was_null = false;
|
||||||
|
|
||||||
if (!dobj && !IsAbstract()) {
|
if (!dobj) {
|
||||||
dobj = dtype->CreateObject(update);
|
if (!IsAbstract())
|
||||||
|
dobj = dtype->CreateObject(update);
|
||||||
|
|
||||||
was_null = true;
|
was_null = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue