NativeScript: java.lang.NullPointerException when closing app
Please, provide the details below:
Hi, I have problem with app crash when I am closing app by middle android button. I am getting this. It will be really hard to reproduce error because it’s big application which is ready to publish to stores. Problem is on Samsung Galaxy J3(2016) (j3xnlte), 1536MB RAM, Android 5.1. On other phones (other versions of Android it’s without problem)
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)
Which platform(s) does your issue occur on?
Android
Please provide the following version numbers that your issue occurs with:
CLI: 4.0.1 Cross-platform modules: 4.0.1 Runtime(s): 4.0.1 Plugin(s): N/A
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (5 by maintainers)
@tsonevn It’s working like a charm! Thank you so much.
Hi @b4rtt, The problem, which you are facing might be related to the one reported in issue #5674. The fix for issue 5674 is already available in
@next
modules. Can you try on your side, whether you will have the same problem with next modules?tns plugin remove tns-core-modules
tns plugin add tns-core-modules@next
tns platform remove android
tns platform add android
tns run android