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:
KIHARA Hideto
2018-01-02 12:41:17 +09:00
parent a24ba41eda
commit 45a7b90c6c
2 changed files with 16 additions and 0 deletions

View File

@@ -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());
}