For some reason, since upgrading to Android 2.1 Update 1 (stock Nexus
One), I occasionally get NullPointerException in WebView.onTouchEvent
method. It does not happen all the time and that makes it difficult to
track down.  Here is the stack trace:

java.lang.NullPointerException
        at android.webkit.WebView.onTouchEvent(WebView.java:3977)
        at android.view.View.dispatchTouchEvent(View.java:3709)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:852)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
        at com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659)
        at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:
1107)
        at android.app.Dialog.dispatchTouchEvent(Dialog.java:643)
        at com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
        at android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:123)
        at android.app.ActivityThread.main(ActivityThread.java:4363)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:521)
        at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
        at dalvik.system.NativeStart.main(Native Method)


It appears to happen after the device resumes from sleep. I also tried
looking at the latest repo source, but the line number (3977) while it
is in the correct function is on line that does not make much sense to
cause the exception.

Has anyonhe seen a similar issue or knows where to get the correct
source of WebView.java that matches the released 2.1 Update 1?

Stefan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to