MiEcosystem / NewXmPluginSDK

xiaomi smarthome app plugin sdk
Apache License 2.0
176 stars 81 forks source link

插件获取的mDeviceStat.did为空 #142

Open lingfei263 opened 5 years ago

lingfei263 commented 5 years ago

设备:米家喷墨打印机 crash日志日期为:10月17日. 已使用最新版米家.不能稳定复现. iot平台crash统计日志中出现的问题.日志如下 ===plugin crash=== pluginId=628 pkgId=26545 userId=**** 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.hannto.anise.android.common.BaseActivity.getAllStatus(BaseActivity.java:272) at com.hannto.anise.android.common.BaseActivity.handleMessage(BaseActivity.java:235) at com.hannto.anise.android.MainActivity.handleMessage(MainActivity.java:772) at com.xiaomi.smarthome.device.api.XmPluginBaseActivity$ActivityHandler.handleMessage(SourceFile:70) at android.os.Handler.dispatchMessage(Handler.java:112) at android.os.Looper.loop(Looper.java:216) at android.app.ActivityThread.main(ActivityThread.java:7625) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)