pelzvieh / IPv6Droid

IPv6 tunnel client for use on Android
20 stars 5 forks source link

NullpointerException was reported by Google #13

Closed pelzvieh closed 9 years ago

pelzvieh commented 10 years ago

java.lang.RuntimeException: Unable to start service de.flyingsnail.ipv6droid.android.AyiyaVpnService@413408a8 with null: java.lang.NullPointerException at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2527) at android.app.ActivityThread.access$1900(ActivityThread.java:136) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1298) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4802) 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:813) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:580) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at de.flyingsnail.ipv6droid.android.AyiyaVpnService.onStartCommand(AyiyaVpnService.java:97) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2510) ... 10 more

Original comment by: pelzi

pelzvieh commented 10 years ago

This appears very odd at the line in question:

        TicTunnel cachedTunnel = (TicTunnel)intent.getSerializableExtra(EXTRA_CACHED_TUNNEL);

getSerializableExtra can return null, but the cast won't throw a NPE. So the incident must be that intent is null. Indeed I didn't expect that it could be null; some research needs to be done.

Original comment by: pelzi

pelzvieh commented 10 years ago

Original comment by: pelzi

pelzvieh commented 10 years ago

Fixed in Version 7 (1.03)

Original comment by: pelzi