mirror of https://github.com/Icinga/icinga2.git
parent
48ea8800c3
commit
bd896935d6
|
@ -219,6 +219,9 @@ ConfigObject::Ptr ConfigItem::Commit(bool discard)
|
|||
NameComposer *nc = dynamic_cast<NameComposer *>(type.get());
|
||||
|
||||
if (nc) {
|
||||
if (name.IsEmpty())
|
||||
BOOST_THROW_EXCEPTION(ScriptError("Object name must not be empty.", m_DebugInfo));
|
||||
|
||||
name = nc->MakeName(name, dobj);
|
||||
|
||||
if (name.IsEmpty())
|
||||
|
|
Loading…
Reference in New Issue