David Kemp created CB-7096: ------------------------------ Summary: NPE at onJsPrompt() on Android 4.1.1 Key: CB-7096 URL: https://issues.apache.org/jira/browse/CB-7096 Project: Apache Cordova Issue Type: Bug Components: Android Affects Versions: 4.0.0 Environment: Android 4.1.1 Reporter: David Kemp
App fails immediately on startup with NPE. D/AndroidWebViewClient( 3622): onPageStarted(file:///android_asset/www/cdvah/harnessmenu.html) D/CordovaActivity( 3622): onMessage(onPageStarted,file:///android_asset/www/cdvah/harnessmenu.html) D/SoftKeyboardDetect( 3622): Ignore this event I/SurfaceFlinger( 193): id=12(1) createSurf 0x40015b34 (1x1),1 flag=400 D/STATUSBAR-StatusBarManagerService( 716): setSystemUiVisibility(0x0) D/STATUSBAR-StatusBarManagerService( 716): manageDisableList what=0x0 pkg=WindowManager.LayoutParams D/libEGL ( 3622): loaded /system/lib/egl/libEGL_adreno200.so I/SurfaceFlinger( 193): id=10 Removed idx=1 MapSz=4 D/libEGL ( 3622): loaded /system/lib/egl/libGLESv1_CM_adreno200.so I/SurfaceFlinger( 193): id=10 Removed idx=-2 MapSz=4 D/libEGL ( 3622): loaded /system/lib/egl/libGLESv2_adreno200.so D/overlay ( 193): FROM_STATE = OV_BYPASS_3_LAYER TO_STATE = OV_CLOSED D/overlay ( 193): FROM_STATE = OV_CLOSED TO_STATE = OV_BYPASS_2_LAYER I/Adreno200-EGLSUB( 3622): <ConfigWindowMatch:2087>: Format RGBA_8888. E/ ( 3622): <s3dReadConfigFile:75>: Can't open file for reading E/ ( 3622): <s3dReadConfigFile:75>: Can't open file for reading D/OpenGLRenderer( 3622): Enabling debug mode 0 D/SoftKeyboardDetect( 3622): Ignore this event D/WebView ( 3622): onSizeChanged - w:720 h:1230 I/ClipboardServiceEx( 716): Send intent for dismiss clipboard dialog inside hideCurrentInputLocked() ! D/AndroidRuntime( 3622): Shutting down VM W/dalvikvm( 3622): threadid=1: thread exiting with uncaught exception (group=0x41034438) I/Adreno200-EGLSUB( 193): <CreateImage:897>: Android Image I/Adreno200-EGLSUB( 193): <GetImageAttributes:1106>: RGBA_8888 E/AndroidRuntime( 3622): FATAL EXCEPTION: main E/AndroidRuntime( 3622): java.lang.NullPointerException E/AndroidRuntime( 3622): at org.apache.cordova.AndroidChromeClient.onJsPrompt(AndroidChromeClient.java:232) E/AndroidRuntime( 3622): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:882) E/AndroidRuntime( 3622): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 3622): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime( 3622): at android.app.ActivityThread.main(ActivityThread.java:4918) E/AndroidRuntime( 3622): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 3622): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime( 3622): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1004) E/AndroidRuntime( 3622): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:771) E/AndroidRuntime( 3622): at dalvik.system.NativeStart.main(Native Method) -- This message was sent by Atlassian JIRA (v6.2#6252)