I received a crash report with the following log contents:
java.lang.NullPointerException at android.webkit.PluginFullScreenHolder.show(PluginFullScreenHolder.java:85) at android.webkit.WebView$PrivateHandler.handleMessage(WebView.java:8553) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4340) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method)
I tried searching PluginFullScreenHolder over the net, but line 85 seems to be a comment in the classes I found.
I suppose the crash is related to WebView - perhaps because I'm trying to load null , but I'm very unsure of it, especially because I don't see the path for the null url.
I believe the report comes from the Galaxy Nexus (on Android 4.0), if that matters, but I'm not sure. If not, this is a cellular device.
Anyone with PluginFullScreenHolder experience?
Here is my code
web = (WebView) findViewById(R.id.webView1); web.setBackgroundColor(android.R.color.black); web.getSettings().setJavaScriptEnabled(true); web.getSettings().setPluginsEnabled(true); web.getSettings().setUserAgent(1); web.getSettings().setSupportZoom(false); web.loadUrl("http://www.justin.tv/widgets/live_embed_player.swf?auto_play=true&fullscreen=true&start_volume=100&hostname=www.justin.tv&channel=" + this.getIntent().getExtras().getString("channelName"));
The strange thing is that the crash report from Market does not mention anything about my code - nothing that ever, you look at the full log above. This is PluginFullScreenHolder.java, no doubt.
Edit 2:
Found the correct class: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.1_r1/android/webkit/PluginFullScreenHolder.java#PluginFullScreenHolder.show%28% 29th
Corresponding line:
client.onShowCustomView(mLayout, mOrientation, mCallback);
source share