Fixed <rdar://problem/4003251> Safari crashed at www.icelandair.com in LiveConnect...
[WebKit-https.git] / JavaScriptCore / bindings / jni / jni_runtime.cpp
index 81d9668f6a57c3fcfa48e0778d21cb8b09f8e12b..98b1994d1553255c78e49e9ffeaca72cfc32b5cf 100644 (file)
@@ -120,7 +120,7 @@ KJS::Value JavaField::valueFromInstance(KJS::ExecState *exec, const Instance *i)
             if (arrayType[0] == '[') {
                 jsresult = JavaArray::convertJObjectToArray (exec, anObject, arrayType, instance->executionContext());
             }
-            else {
+            else if (anObject != 0){
                jsresult = Instance::createRuntimeObject(Instance::JavaLanguage, anObject, instance->executionContext());
             }
         }