{"action":"created","issue":{"url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android/issues/58","repository_url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android","labels_url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android/issues/58/comments","events_url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android/issues/58/events","html_url":"https://github.com/dji-sdk/Mobile-SDK-Android/issues/58","id":193533046,"number":58,"title":"Resource not found exceptions thrown when emitting DJIDiagnostics","user":{"login":"jtuchek","id":5649524,"avatar_url":"https://avatars.githubusercontent.com/u/5649524?v=3","gravatar_id":"","url":"https://api.github.com/users/jtuchek","html_url":"https://github.com/jtuchek","followers_url":"https://api.github.com/users/jtuchek/followers","following_url":"https://api.github.com/users/jtuchek/following{/other_user}","gists_url":"https://api.github.com/users/jtuchek/gists{/gist_id}","starred_url":"https://api.github.com/users/jtuchek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtuchek/subscriptions","organizations_url":"https://api.github.com/users/jtuchek/orgs","repos_url":"https://api.github.com/users/jtuchek/repos","events_url":"https://api.github.com/users/jtuchek/events{/privacy}","received_events_url":"https://api.github.com/users/jtuchek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-05T15:46:34Z","updated_at":"2016-12-07T16:54:49Z","closed_at":null,"body":"When the SDK invokes DJIBaseProduct.onDiagnosisUpdate(...) it always crashes with a resource not found exception.\r\n\r\nI am using v3.4 of the SDK.\r\n\r\n```java\r\n\r\nException android.content.res.Resources$NotFoundException: String resource ID #0x0\r\nandroid.content.res.Resources.getText (Resources.java:299)\r\nandroid.content.res.Resources.getString (Resources.java:385)\r\ndji.midware.g.a.a ()\r\ndji.midware.g.a.b ()\r\ndji.sdk.util.Util.getString ()\r\ndji.internal.c.j.a ()\r\ndji.internal.c.g.a ()\r\ndji.sdk.base.DJIBaseProduct$1.onDiagnosisUpdate ()\r\ndji.internal.c.f.c ()\r\ndji.internal.c.m.onSuccess ()\r\ndji.midware.data.manager.P3.u.callbackSuccess ()\r\ndji.midware.data.manager.P3.u.access$200 ()\r\ndji.midware.data.manager.P3.w.run ()\r\njava.lang.Thread.run (Thread.java:818)\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android/issues/comments/265503653","html_url":"https://github.com/dji-sdk/Mobile-SDK-Android/issues/58#issuecomment-265503653","issue_url":"https://api.github.com/repos/dji-sdk/Mobile-SDK-Android/issues/58","id":265503653,"user":{"login":"jtuchek","id":5649524,"avatar_url":"https://avatars.githubusercontent.com/u/5649524?v=3","gravatar_id":"","url":"https://api.github.com/users/jtuchek","html_url":"https://github.com/jtuchek","followers_url":"https://api.github.com/users/jtuchek/followers","following_url":"https://api.github.com/users/jtuchek/following{/other_user}","gists_url":"https://api.github.com/users/jtuchek/gists{/gist_id}","starred_url":"https://api.github.com/users/jtuchek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtuchek/subscriptions","organizations_url":"https://api.github.com/users/jtuchek/orgs","repos_url":"https://api.github.com/users/jtuchek/repos","events_url":"https://api.github.com/users/jtuchek/events{/privacy}","received_events_url":"https://api.github.com/users/jtuchek/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T16:54:49Z","updated_at":"2016-12-07T16:54:49Z","body":"To be more specific, when using the DJI GO application - instances that would cause the diagnostics emission to fail would be:\r\n\r\n- drone not registered\r\n- inconsistent firmware\r\n\r\nI don't have a clue about what else could possibly be emitted from this callback, none of the events are documented (at least that I have seen in the mobile SDK docs, I'm sure this varies based on flight controller implementations)."}}
{"actor":{"display_login":"jtuchek"}}