title: Android react native java null pointer exception
body: <p>My large react-native application crashes sometimes with following error.</p>
  
  <pre><code>java.lang.NullPointerException: Attempt to invoke interface method 'void com.facebook.react.uimanager.ReactShadowNode.addChildAt(com.facebook.react.uimanager.ReactShadowNode, int)' on a null object reference
      at com.facebook.react.uimanager.UIImplementation.setChildren(UIImplementation.java:482)
      at com.facebook.react.uimanager.UIManagerModule.setChildren(UIManagerModule.java:441)
      at java.lang.reflect.Method.invoke(Method.java)
      at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
      at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:160)
      at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java)
      at android.os.Handler.handleCallback(Handler.java:751)
      at android.os.Handler.dispatchMessage(Handler.java:95)
      at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
      at android.os.Looper.loop(Looper.java:154)
      at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
      at java.lang.Thread.run(Thread.java:761)
  </code></pre>
  
  <p>This does not happen always, therefore hard to reproduce this error. What could be the reason for this exception. </p>
  
  <p>Thanks in Advance.</p>