NullPointerException in webview.java (android.webkit.WebView$PrivateHandler.handleMessage)

Posted by PacificSky on Stack Overflow See other posts from Stack Overflow or by PacificSky
Published on 2012-09-07T21:35:33Z Indexed on 2012/09/07 21:37 UTC
Read the original article Hit count: 458

Every few days I get a crash report for my application with the following stack trace, or small variants thereof (with different line numbers based on different android versions)

java.lang.NullPointerException at
WebView.java:8241:in `android.webkit.WebView$PrivateHandler.handleMessage'
Handler.java:99:in `android.os.Handler.dispatchMessage'
Looper.java:150:in `android.os.Looper.loop'
ActivityThread.java:4293:in `android.app.ActivityThread.main'
Method.java:-2:in `java.lang.reflect.Method.invokeNative'
Method.java:507:in `java.lang.reflect.Method.invoke'
ZygoteInit.java:849:in `com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run'
ZygoteInit.java:607:in `com.android.internal.os.ZygoteInit.main'
NativeStart.java:-2:in `dalvik.system.NativeStart.main'

This specific stack was on Android 2.3.4 on a HTC EVO 3D PG86100 device. My app does host several webviews for some oAuth-related login scenarios.

How should I go about trying to figure out how to fix this? I've tried looking on grepcode to find the source, but I'm unable to find a matching line number that makes sense. Is my Grepcode-fu weak?

© Stack Overflow or respective owner

Related posts about android

Related posts about webview