mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 20:33:07 +08:00
Fix NPE when using LOCATION_CHANGE exec bridge.
This commit is contained in:
parent
65a397fb63
commit
6ca6d88bff
@ -111,8 +111,8 @@ public class CordovaWebViewClient extends WebViewClient {
|
||||
String callbackId = url.substring(idx3 + 1, idx4);
|
||||
String jsonArgs = url.substring(idx4 + 1);
|
||||
PluginResult r = appView.pluginManager.exec(service, action, callbackId, jsonArgs, true /* async */);
|
||||
String callbackString = r.toCallbackString(callbackId);
|
||||
if (r != null) {
|
||||
String callbackString = r.toCallbackString(callbackId);
|
||||
appView.sendJavascript(callbackString);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user