WebViewer crashing on Memu emulator [Android 5.1.1]

Same blocks work on Android 4.4 in real phone but not on emulator, in companion.
Here is the logcat:


D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https
ewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

W/cr_BindingManager(10434): Cannot call determinedVisibility() - never saw a connection for the pid: 10434

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = https

D/HoneycombWebViewClient(10434): scheme = blob

W/System.err(10434): java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

W/System.err(10434): 	at com.google.appinventor.components.runtime.util.HoneycombWebViewClient.shouldInterceptRequest(HoneycombWebViewClient.java:48)

W/System.err(10434): 	at com.android.webview.chromium.WebViewContentsClientAdapter.shouldInterceptRequest(WebViewContentsClientAdapter.java:307)

W/System.err(10434): 	at org.chromium.android_webview.AwContents$BackgroundThreadClientImpl.shouldInterceptRequest(AwContents.java:523)

W/System.err(10434): 	at org.chromium.android_webview.AwContentsBackgroundThreadClient.shouldInterceptRequestFromNative(AwContentsBackgroundThreadClient.java:38)

It is from this line:

Seems like it should be easy to fix if the equality check is inverted, e.g.,

"localhost".equals(request.getUrl().getAuthority())
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.