File prevent-crash.patch of Package libqt5-qtdeclarative.4949

diff --git a/src/qml/jsruntime/qv4stringobject.cpp b/src/qml/jsruntime/qv4stringobject.cpp
--- a/src/qml/jsruntime/qv4stringobject.cpp
+++ b/src/qml/jsruntime/qv4stringobject.cpp
@@ -83,7 +83,7 @@
     : Heap::Object(engine->emptyClass, engine->stringPrototype.asObject())
 {
     value = val;
-    Q_ASSERT(value.isString());
+    if(!value.isString()) return;
     tmpProperty.value = Primitive::undefinedValue();
 
     Scope scope(engine);
openSUSE Build Service is sponsored by