Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start the device without a network, then connect to the network, it will crash #484

Open
1 task done
laishichang opened this issue Aug 22, 2022 · 0 comments
Open
1 task done

Comments

@laishichang
Copy link

Please fill out the form below before submitting, thank you!

  • Bug exists Release Version 1.1.1 (Java Repository Master Branch)

Console Log output (if available):

2022-08-22 15:47:01.835 473-594/system_process D/ConnectivityService: sendStickyBroadcast: action=android.net.conn.INET_CONDITION_ACTION
2022-08-22 15:47:01.839 1560-1560/? I/MqttConnection: Requesting Automatic reconnect using New Java AC
2022-08-22 15:47:01.840 1560-1560/? D/AndroidRuntime: Shutting down VM
2022-08-22 15:47:01.841 1560-1560/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.iplaysky.egg, PID: 1560
    java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4000010 (has extras) } in org.eclipse.paho.android.service.MqttService$NetworkConnectionIntentReceiver@fc2547
        at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1132)
        at android.os.Handler.handleCallback(Handler.java:755)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6141)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:913)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:803)
     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.Timer.cancel()' on a null object reference
        at org.eclipse.paho.client.mqttv3.MqttAsyncClient.stopReconnectCycle(MqttAsyncClient.java:1120)
        at org.eclipse.paho.client.mqttv3.MqttAsyncClient.reconnect(MqttAsyncClient.java:1057)
        at org.eclipse.paho.android.service.MqttConnection.reconnect(MqttConnection.java:1049)
        at org.eclipse.paho.android.service.MqttService.reconnect(MqttService.java:342)
        at org.eclipse.paho.android.service.MqttService$NetworkConnectionIntentReceiver.onReceive(MqttService.java:827)
        at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:1122)
        at android.os.Handler.handleCallback(Handler.java:755at android.os.Handler.dispatchMessage(Handler.java:95at android.os.Looper.loop(Looper.java:154at android.app.ActivityThread.main(ActivityThread.java:6141at java.lang.reflect.Method.invoke(Native Methodat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:913at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:8032022-08-22 15:47:01.847 473-984/system_process W/ActivityManager:   Force finishing activity com.iplaysky.egg/.MainActivity
2022-08-22 15:47:01.848 473-984/system_process I/ActivityManager: Clearing package preferred activities from com.iplaysky.egg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant