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

获取DeviceStat.did为空 #89

Open
Chgocn opened this issue Apr 4, 2019 · 3 comments
Open

获取DeviceStat.did为空 #89

Chgocn opened this issue Apr 4, 2019 · 3 comments
Assignees
Labels

Comments

@Chgocn
Copy link

Chgocn commented Apr 4, 2019

从后台日志查看到获取DeviceStat.did为空,但是很难复现,理论上说这个did是从米家传过来的,不应该会是空的,详细日志如下:
java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.xiaomi.smarthome.device.api.DeviceStat.did' on a null object reference
at com.xiaomi.smarthome.device.api.BaseDevice.getDid(SourceFile:144)
at com.ksmb.walkingpad.core.WalkingPadDevice.getDevice(Unknown Source:23)
at com.ksmb.walkingpad.ui.main.MainActivity.onCreate(Unknown Source:48)
at com.xiaomi.smarthome.frame.plugin.runtime.activity.PluginHostActivity.launchActivity(SourceFile:834)
at com.xiaomi.smarthome.frame.plugin.runtime.activity.PluginHostActivity.doCreate(SourceFile:439)
at com.xiaomi.smarthome.frame.plugin.runtime.activity.PluginHostActivity.onCreate(SourceFile:341)
at android.app.Activity.performCreate(Activity.java:7183)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1220)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2908)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3030)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

@zanetti4
Copy link

请问涉及到的设备是什么?只出现在安卓系统吗?

@Chgocn
Copy link
Author

Chgocn commented Aug 27, 2019

走步机,只出现在安卓系统上。

@lvjie0519
Copy link
Contributor

@Chgocn 使用的是哪个版本的apk? 这个有做过修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants