From 9011c9fa677f55661d9d5fae1bd73c0566cbad74 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 16 Dec 2014 18:15:47 +0100 Subject: [PATCH] Fix crash when accessing invalid fields on objects which don't have prototypes --- lib/config/vmops.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/vmops.hpp b/lib/config/vmops.hpp index 184da244b..48d0f5b48 100644 --- a/lib/config/vmops.hpp +++ b/lib/config/vmops.hpp @@ -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(); -- 2.40.0