Android NullPointerException crash on minimalize of app


#1

Hi, I have problem on some Android devices. When I close app by middle button app crashes with this log.
Phone is Samsung Galaxy J3(2016) (j3xnlte), 1536MB RAM, Android 5.1.

Using tns android 4.0.1

java.lang.NullPointerException: 
  at android.app.BackStackRecord$1.onPreDraw (BackStackRecord.java:1131)
  at android.view.ViewTreeObserver.dispatchOnPreDraw (ViewTreeObserver.java:1018)
  at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2327)
  at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1314)
  at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7057)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:829)
  at android.view.Choreographer.doCallbacks (Choreographer.java:606)
  at android.view.Choreographer.doFrame (Choreographer.java:576)
  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:815)
  at android.os.Handler.handleCallback (Handler.java:739)
  at android.os.Handler.dispatchMessage (Handler.java:95)
  at android.os.Looper.loop (Looper.java:145)
  at android.app.ActivityThread.main (ActivityThread.java:6934)
  at java.lang.reflect.Method.invoke (Native Method)
  at java.lang.reflect.Method.invoke (Method.java:372)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1404)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1199)

java.lang.NullPointerException: Attempt to read from field 'int android.app.Fragment.mContainerId' on a null object reference