aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/qml/jsruntime/qv4objectproto.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4objectproto.cpp b/src/qml/jsruntime/qv4objectproto.cpp
index fa9cae970d..a61b5d5136 100644
--- a/src/qml/jsruntime/qv4objectproto.cpp
+++ b/src/qml/jsruntime/qv4objectproto.cpp
@@ -193,6 +193,8 @@ ReturnedValue ObjectPrototype::method_getOwnPropertySymbols(const FunctionObject
return scope.engine->throwTypeError();
ScopedObject O(scope, argv[0].toObject(scope.engine));
+ if (!O)
+ return Encode::undefined();
Heap::InternalClass *ic = O->d()->internalClass;
ScopedValue n(scope);
ScopedArrayObject array(scope, scope.engine->newArrayObject());