{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/stetho/issues/272","labels_url":"https://api.github.com/repos/facebook/stetho/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/facebook/stetho/issues/272/comments","events_url":"https://api.github.com/repos/facebook/stetho/issues/272/events","html_url":"https://github.com/facebook/stetho/issues/272","id":104935795,"number":272,"title":"NPE crash in ElementInfo.<init>","user":{"login":"rickbrew","id":10873410,"avatar_url":"https://avatars.githubusercontent.com/u/10873410?v=3","gravatar_id":"","url":"https://api.github.com/users/rickbrew","html_url":"https://github.com/rickbrew","followers_url":"https://api.github.com/users/rickbrew/followers","following_url":"https://api.github.com/users/rickbrew/following{/other_user}","gists_url":"https://api.github.com/users/rickbrew/gists{/gist_id}","starred_url":"https://api.github.com/users/rickbrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickbrew/subscriptions","organizations_url":"https://api.github.com/users/rickbrew/orgs","repos_url":"https://api.github.com/users/rickbrew/repos","events_url":"https://api.github.com/users/rickbrew/events{/privacy}","received_events_url":"https://api.github.com/users/rickbrew/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/stetho/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"rickbrew","id":10873410,"avatar_url":"https://avatars.githubusercontent.com/u/10873410?v=3","gravatar_id":"","url":"https://api.github.com/users/rickbrew","html_url":"https://github.com/rickbrew","followers_url":"https://api.github.com/users/rickbrew/followers","following_url":"https://api.github.com/users/rickbrew/following{/other_user}","gists_url":"https://api.github.com/users/rickbrew/gists{/gist_id}","starred_url":"https://api.github.com/users/rickbrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickbrew/subscriptions","organizations_url":"https://api.github.com/users/rickbrew/orgs","repos_url":"https://api.github.com/users/rickbrew/repos","events_url":"https://api.github.com/users/rickbrew/events{/privacy}","received_events_url":"https://api.github.com/users/rickbrew/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/facebook/stetho/milestones/3","html_url":"https://github.com/facebook/stetho/milestones/v1.2.0","labels_url":"https://api.github.com/repos/facebook/stetho/milestones/3/labels","id":1240636,"number":3,"title":"v1.2.0","description":"Cut the new v1.2.0 release :)\r\n\r\nThis release will focus on the Console tab (specifically `stetho-js-rhino`), but also has some nice goodies in the Elements tab.\r\n\r\nEDIT: Moved to Aug 31 to account for my vacation :(","creator":{"login":"jasta","id":83791,"avatar_url":"https://avatars.githubusercontent.com/u/83791?v=3","gravatar_id":"","url":"https://api.github.com/users/jasta","html_url":"https://github.com/jasta","followers_url":"https://api.github.com/users/jasta/followers","following_url":"https://api.github.com/users/jasta/following{/other_user}","gists_url":"https://api.github.com/users/jasta/gists{/gist_id}","starred_url":"https://api.github.com/users/jasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasta/subscriptions","organizations_url":"https://api.github.com/users/jasta/orgs","repos_url":"https://api.github.com/users/jasta/repos","events_url":"https://api.github.com/users/jasta/events{/privacy}","received_events_url":"https://api.github.com/users/jasta/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":7,"state":"open","created_at":"2015-08-04T17:31:55Z","updated_at":"2015-09-04T18:47:46Z","due_on":"2015-08-31T07:00:00Z","closed_at":null},"comments":0,"created_at":"2015-09-04T17:40:57Z","updated_at":"2015-09-04T18:47:46Z","closed_at":"2015-09-04T18:47:46Z","body":"From inspecting the code, a `Descriptor` is emitting a null child which is why the `ElementInfo` constructor is unhappy. My bet is on `DialogFragmentDescriptor` because it doesn't check if `getDialog()` returns null before handing it off to `children.store()`.\r\n\r\n```\r\ncom.facebook.stetho.common.Util.throwIfNull(Util.java:26)\r\ncom.facebook.stetho.inspector.elements.ElementInfo.<init>(ElementInfo.java:29)\r\ncom.facebook.stetho.inspector.elements.ShadowDocument$UpdateBuilder.setElementParent(ShadowDocument.java:231)\r\ncom.facebook.stetho.inspector.elements.ShadowDocument$UpdateBuilder.setElementChildren(ShadowDocument.java:176)\r\ncom.facebook.stetho.inspector.elements.Document.createShadowDOMUpdate(Document.java:283)\r\ncom.facebook.stetho.inspector.elements.Document.updateTree(Document.java:298)\r\ncom.facebook.stetho.inspector.elements.Document.access$1200(Document.java:30)\r\ncom.facebook.stetho.inspector.elements.Document$ProviderListener.onPossiblyChanged(Document.java:622)\r\ncom.facebook.stetho.inspector.elements.android.AndroidDocumentProvider$1.run(AndroidDocumentProvider.java:68)\r\nandroid.os.Handler.handleCallback(Handler.java:733)\r\nandroid.os.Handler.dispatchMessage(Handler.java:95)\r\nandroid.os.Looper.loop(Looper.java:136)\r\nandroid.app.ActivityThread.main(ActivityThread.java:5017)\r\njava.lang.reflect.Method.invokeNative(Native Method:0)\r\njava.lang.reflect.Method.invoke(Method.java:515)\r\ncom.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)\r\ncom.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)\r\ndalvik.system.NativeStart.main(Native Method:0)\r\n```"}}