nttcom / SkyWay-iOS-SDK

[Deprecated] SkyWay iOS SDK
17 stars 2 forks source link

Field 'boolean io.skyway.Peer.Reachability.isConnected' on a null object reference #6

Open bantayso opened 7 years ago

bantayso commented 7 years ago

My App crash by below raw:

Fatal Exception: java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4000010 bqHint=4 VirtualScreenParam=Params{mDisplayId=-1, null, mFlags=0x00000000)} (has extras) } in io.skyway.Peer.Reachability$1@7546787 at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1003) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7230) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) Caused by java.lang.NullPointerException: Attempt to write to field 'boolean io.skyway.Peer.Reachability.isConnected' on a null object reference at io.skyway.Peer.Reachability$1.onReceive(Reachability.java:76) at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:993) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7230) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Kindly check. Thanks