Bug 1014965 - NativeJSObject.optString does the wrong thing on "key":null, r=jchen, f=nalexander
This commit is contained in:
@@ -668,7 +668,7 @@ GetProperty(JNIEnv* env, jobject instance, jstring name,
|
||||
JS_GetUCProperty(cx, object, strName, strName.Length(), &val))) {
|
||||
return typename Property::Type();
|
||||
}
|
||||
if (val.isUndefined()) {
|
||||
if (val.isUndefined() || val.isNull()) {
|
||||
if (option == FallbackOption::THROW) {
|
||||
AndroidBridge::ThrowException(env,
|
||||
"java/lang/IllegalArgumentException",
|
||||
|
||||
Reference in New Issue
Block a user