mirror of
https://github.com/apache/cordova-android.git
synced 2026-01-30 00:05:28 +08:00
CB-12218: (android) Fix consistency of null result message
Fix problem that JavaScript receives ""(empty string) instead of null if plugin sends null result from new thread.
This commit is contained in:
@@ -511,6 +511,9 @@ public class NativeToJsMessageQueue {
|
||||
.append(pluginResult.getMessage())
|
||||
.append("')");
|
||||
break;
|
||||
case PluginResult.MESSAGE_TYPE_NULL:
|
||||
sb.append("null");
|
||||
break;
|
||||
default:
|
||||
sb.append(pluginResult.getMessage());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user