50

I have an app uploaded on PlayStore and getting crash on it java.lang.NullPointerException from android.app.ActivityThread.updateLocaleListFromAppContext

I have tried searching a lot online to check where this error could be coming from. I'm not natively using this method call specifically for anything in the code.

java.lang.NullPointerException: 
  at android.app.ActivityThread.updateLocaleListFromAppContext (ActivityThread.java:5892)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6127)
  at android.app.ActivityThread.access$1200 (ActivityThread.java:240)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1797)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:214)
  at android.app.ActivityThread.main (ActivityThread.java:7076)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:965)

Please help if anyone knows the solution or where I can start looking to resolve this.

To clarify, this is not an issue of how to avoid a common NullPointerException, this does not happen in the developers code but rather on the side of Android API itself and the question is on how to avoid it, as it cannot be resolved directly. The issue still exists.

NoHarmDan
  • 386
  • 3
  • 14
Richie
  • 525
  • 1
  • 5
  • 9
  • In crash log u can find the java class and line number – Piyush Jun 17 '19 at 07:06
  • I have pasted the crash log i obtained from the playstore in my question. The error is in default android classes. – Richie Jun 17 '19 at 07:07
  • 1
    I found something xda developers site https://forum.xda-developers.com/showpost.php?p=72836226&postcount=581 – VinothKumar Subramani Jul 18 '19 at 04:29
  • No solution on that forum link as well @VinothKumarSubramani – Richie Jul 29 '19 at 13:25
  • 4
    2 years later, I'm also seeing that issue on Android 9, and sadly no indication on its root cause. Any progress on finding a solution? – 3c71 Sep 09 '19 at 06:57
  • 9
    Same here. For me the issue started appearing abruptly 1 week ago. Unable to detect where it's coming from. It only happens on OnePlus devices. – saberrider Sep 16 '19 at 07:56
  • 1
    I'm getting this error heavily on Samsung J series devices running Android 9. – Richie Nov 08 '19 at 05:02
  • 1
    and still there.. and only on OnePlus – aleksandrbel May 29 '20 at 18:12
  • 1
    https://stackoverflow.com/q/60629355/13600988 Found the same error that's resolved by converting bitmap to byte array before passing in intent. It May be that you too are trying to pass bitmap directly with intent. – Shubham Agrawal Jul 18 '20 at 22:15
  • 1
    @ShubhamAgrawal I didn't pass any bitmap with intent but I'm still getting this error from Firebase Crashlytics, I don't think it is related to bitmap. I got this error on Vsmart Joy 3 running Android10. (Unfortunately, I don't own a Vsmart and I can't reproduce the error) – Lynch Chen Apr 16 '21 at 09:55
  • still there... so far only seen on OnePlus5, Android 9 – John Pang Jun 02 '21 at 13:25
  • same here...this NPE just appeared for me on a "UMIDIGI Bison GT" using Android 10. Judging from stacktrace, i can only guess that it has something to do with localization... Happened for just one user on said device. – nils277 Apr 25 '22 at 12:22

0 Answers0