mirror of https://github.com/Icinga/icinga2.git
Fix crash when accessing invalid fields on objects which don't have prototypes
This commit is contained in:
parent
2836e9fc6f
commit
9011c9fa67
|
@ -193,7 +193,7 @@ public:
|
|||
do {
|
||||
Object::Ptr object = type->GetPrototype();
|
||||
|
||||
if (HasField(object, field))
|
||||
if (object && HasField(object, field))
|
||||
return GetField(object, field, debugInfo);
|
||||
|
||||
type = type->GetBaseType();
|
||||
|
|
Loading…
Reference in New Issue