{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/10755","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/10755/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/10755/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/10755/events","html_url":"https://github.com/facebook/react-native/issues/10755","id":187432005,"number":10755,"title":"Android: NPE in UIImplementation.setChildren (0.34.1)","user":{"login":"silverspace","id":15318933,"avatar_url":"https://avatars.githubusercontent.com/u/15318933?v=3","gravatar_id":"","url":"https://api.github.com/users/silverspace","html_url":"https://github.com/silverspace","followers_url":"https://api.github.com/users/silverspace/followers","following_url":"https://api.github.com/users/silverspace/following{/other_user}","gists_url":"https://api.github.com/users/silverspace/gists{/gist_id}","starred_url":"https://api.github.com/users/silverspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverspace/subscriptions","organizations_url":"https://api.github.com/users/silverspace/orgs","repos_url":"https://api.github.com/users/silverspace/repos","events_url":"https://api.github.com/users/silverspace/events{/privacy}","received_events_url":"https://api.github.com/users/silverspace/received_events","type":"User","site_admin":false},"labels":[{"id":260305031,"url":"https://api.github.com/repos/facebook/react-native/labels/Android","name":"Android","color":"bfe5bf","default":false},{"id":238473506,"url":"https://api.github.com/repos/facebook/react-native/labels/Needs%20more%20information","name":"Needs more information","color":"f7c6c7","default":false},{"id":302848290,"url":"https://api.github.com/repos/facebook/react-native/labels/Needs%20Response%20from%20Author","name":"Needs Response from Author","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-04T20:34:22Z","updated_at":"2016-12-17T12:15:45Z","closed_at":null,"body":"A customer received this NPE in UIImplementation.setChildren: \r\n\r\n```\r\nFatal Exception: java.lang.NullPointerException\r\n       at com.facebook.react.uimanager.UIImplementation.setChildren(UIImplementation.java:369)\r\n       at com.facebook.react.uimanager.UIManagerModule.setChildren(UIManagerModule.java:289)\r\n       at java.lang.reflect.Method.invokeNative(Method.java)\r\n       at java.lang.reflect.Method.invoke(Method.java:515)\r\n       at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:319)\r\n       at com.facebook.react.cxxbridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:158)\r\n       at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java)\r\n       at android.os.Handler.handleCallback(Handler.java:733)\r\n       at android.os.Handler.dispatchMessage(Handler.java:95)\r\n       at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)\r\n       at android.os.Looper.loop(Looper.java:146)\r\n       at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:196)\r\n       at java.lang.Thread.run(Thread.java:841)\r\n```\r\n\r\n### Reproduction\r\n\r\nThis happened on a customer production device, so I only have the above stack trace. I have been unable to reproduce this issue myself. The customer thinks that he was rotating the device while a new page was being rendered, but that could be completely unrelated. \r\n\r\nI am filing this primarily because there should be a defensive programming check against **mShadowNodeRegistry.getNode(viewTag)** returning null in:\r\nhttps://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java#L371\r\n\r\n### Additional Information\r\n\r\n* React Native version: 0.34.1\r\n* Platform: Android: SM-T230, 4.4.2\r\n* Operating System: MacOS\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/267759617","html_url":"https://github.com/facebook/react-native/issues/10755#issuecomment-267759617","issue_url":"https://api.github.com/repos/facebook/react-native/issues/10755","id":267759617,"user":{"login":"littlesome","id":7804648,"avatar_url":"https://avatars.githubusercontent.com/u/7804648?v=3","gravatar_id":"","url":"https://api.github.com/users/littlesome","html_url":"https://github.com/littlesome","followers_url":"https://api.github.com/users/littlesome/followers","following_url":"https://api.github.com/users/littlesome/following{/other_user}","gists_url":"https://api.github.com/users/littlesome/gists{/gist_id}","starred_url":"https://api.github.com/users/littlesome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littlesome/subscriptions","organizations_url":"https://api.github.com/users/littlesome/orgs","repos_url":"https://api.github.com/users/littlesome/repos","events_url":"https://api.github.com/users/littlesome/events{/privacy}","received_events_url":"https://api.github.com/users/littlesome/received_events","type":"User","site_admin":false},"created_at":"2016-12-17T12:15:45Z","updated_at":"2016-12-17T12:15:45Z","body":"#11524 "}}
{"actor":{"display_login":"littlesome"}}