mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
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 {
|
do {
|
||||||
Object::Ptr object = type->GetPrototype();
|
Object::Ptr object = type->GetPrototype();
|
||||||
|
|
||||||
if (HasField(object, field))
|
if (object && HasField(object, field))
|
||||||
return GetField(object, field, debugInfo);
|
return GetField(object, field, debugInfo);
|
||||||
|
|
||||||
type = type->GetBaseType();
|
type = type->GetBaseType();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user