aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qml/jsruntime/qv4objectiterator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4objectiterator.cpp b/src/qml/jsruntime/qv4objectiterator.cpp
index eac2aca059..573f42956d 100644
--- a/src/qml/jsruntime/qv4objectiterator.cpp
+++ b/src/qml/jsruntime/qv4objectiterator.cpp
@@ -159,7 +159,7 @@ PropertyKey ForInIteratorObject::nextProperty() const
}
c = c->getPrototypeOf();
- d()->current.set(scope.engine, c->d());
+ d()->current.set(scope.engine, c ? c->d() : nullptr);
if (!c)
break;
delete d()->iterator;