mfinkle / geckobrowser

Very basic Android browser application that uses the GeckoView widget
Mozilla Public License 2.0
103 stars 26 forks source link

NullPointerException while running the app #9

Closed cuongthai closed 10 years ago

cuongthai commented 10 years ago
03-19 14:59:41.163: E/GeckoAppShell(1375): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 2731 ("Gecko")
03-19 14:59:41.163: E/GeckoAppShell(1375): java.lang.NullPointerException
03-19 14:59:41.163: E/GeckoAppShell(1375):  at org.mozilla.gecko.GeckoNetworkManager.getNetworkType(GeckoNetworkManager.java:221)
03-19 14:59:41.163: E/GeckoAppShell(1375):  at org.mozilla.gecko.GeckoNetworkManager.updateNetworkType(GeckoNetworkManager.java:180)
03-19 14:59:41.163: E/GeckoAppShell(1375):  at org.mozilla.gecko.GeckoNetworkManager.enableNotifications(GeckoNetworkManager.java:204)
03-19 14:59:41.163: E/GeckoAppShell(1375):  at org.mozilla.gecko.GeckoAppShell.enableNetworkNotifications(GeckoAppShell.java:2466)
03-19 14:59:41.163: E/GeckoAppShell(1375):  at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
03-19 14:59:41.163: E/GeckoAppShell(1375):  at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
03-19 14:59:41.163: E/GeckoAppShell(1375):  at org.mozilla.gecko.GeckoAppShell.runGecko(GeckoAppShell.java:347)
03-19 14:59:41.163: E/GeckoAppShell(1375):  at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:178)
03-19 14:59:41.163: E/GeckoAppShell(1375): Main thread stack:
03-19 14:59:41.168: E/GeckoAppShell(1375): android.os.MessageQueue.nativePollOnce(Native Method)
03-19 14:59:41.168: E/GeckoAppShell(1375): android.os.MessageQueue.next(MessageQueue.java:125)
03-19 14:59:41.168: E/GeckoAppShell(1375): android.os.Looper.loop(Looper.java:124)
03-19 14:59:41.168: E/GeckoAppShell(1375): android.app.ActivityThread.main(ActivityThread.java:4921)
03-19 14:59:41.168: E/GeckoAppShell(1375): java.lang.reflect.Method.invokeNative(Native Method)
03-19 14:59:41.168: E/GeckoAppShell(1375): java.lang.reflect.Method.invoke(Method.java:511)
03-19 14:59:41.168: E/GeckoAppShell(1375): com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
03-19 14:59:41.168: E/GeckoAppShell(1375): com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
03-19 14:59:41.168: E/GeckoAppShell(1375): dalvik.system.NativeStart.main(Native Method)
03-19 14:59:41.168: E/Gecko(1375): mozalloc_abort: Redirecting call to abort() to mozalloc_abort
cuongthai commented 10 years ago

There is a bug in GNM so I call GNM.start() before anything else would solve the problem

mfinkle commented 10 years ago

This issue is being tracked here: https://bugzilla.mozilla.org/show_bug.cgi?id=979623