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

选择wifi界面崩溃log #23

Open
hudson-s opened this issue Feb 26, 2019 · 4 comments
Open

选择wifi界面崩溃log #23

hudson-s opened this issue Feb 26, 2019 · 4 comments

Comments

@hudson-s
Copy link

Process: com.chuangmi.imihome:miot, PID: 18750
java.lang.RuntimeException: Unable to destroy activity {com.chuangmi.imihome/com.miot.service.connection.wifi.SmartConfigMainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes(java.lang.String)' on a null object reference
    at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4505)
    at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4523)
    at android.app.ActivityThread.-wrap5(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1683)
    at android.os.Handler.dispatchMessage(Handler.java:105)
    at android.os.Looper.loop(Looper.java:176)
    at android.app.ActivityThread.main(ActivityThread.java:6701)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:246)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)
 Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes(java.lang.String)' on a null object reference
    at com.miot.service.connection.DeviceConnectionImpl.getBase64(DeviceConnectionImpl.java:152)
    at com.miot.service.connection.DeviceConnectionImpl.access$000(DeviceConnectionImpl.java:29)
    at com.miot.service.connection.DeviceConnectionImpl$1.onSucceed(DeviceConnectionImpl.java:92)
    at com.miot.service.connection.wifi.SmartConfigMainActivity.onDestroy(SmartConfigMainActivity.java:190)
    at android.app.Activity.performDestroy(Activity.java:7252)
    at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1249)
    at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4492)
    at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4523) 
    at android.app.ActivityThread.-wrap5(Unknown Source:0) 
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1683) 
    at android.os.Handler.dispatchMessage(Handler.java:105) 
    at android.os.Looper.loop(Looper.java:176) 
    at android.app.ActivityThread.main(ActivityThread.java:6701) 
    at java.lang.reflect.Method.invoke(Native Method) 
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:246) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783) 
@M201370367
Copy link
Contributor

确认下,该问题是必现的吗?必现的话是什么场景下必现?

@hudson-s
Copy link
Author

必现问题,选择wifi界面 退出 再进,退出再进 getQrCode函数

@M201370367
Copy link
Contributor

好的,本周会fix该Issue

@M201370367
Copy link
Contributor

您好,上周五已更新米家SDK 3.3.11:
https://github.com/MiEcosystem/mijiaSDK/tree/stable3.0/controller/android

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

2 participants