Fix crash when accessing invalid fields on objects which don't have prototypes

This commit is contained in:
Gunnar Beutner 2014-12-16 18:15:47 +01:00
parent 2836e9fc6f
commit 9011c9fa67
1 changed files with 1 additions and 1 deletions

View File

@ -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();