Android Splashscreen Error


#1

In my developer dashboard for Google Play I’m seeing a few crashes with this error:


java.lang.NullPointerException: 
  at org.apache.cordova.splashscreen.SplashScreen$4.run (SplashScreen.java:227)
  at android.app.Activity.runOnUiThread (Activity.java:6030)
  at org.apache.cordova.splashscreen.SplashScreen.removeSplashScreen (SplashScreen.java:217)
  at org.apache.cordova.splashscreen.SplashScreen.access$1000 (SplashScreen.java:49)
  at org.apache.cordova.splashscreen.SplashScreen$5$1.run (SplashScreen.java:330)
  at android.os.Handler.handleCallback (Handler.java:751)
  at android.os.Handler.dispatchMessage (Handler.java:95)
  at android.os.Looper.loop (Looper.java:154)
  at android.app.ActivityThread.main (ActivityThread.java:6692)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1468)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1358)

Anyone seen this before or know what to look for or a potential fix? On my Android test devices it works fine and hides correctly, no errors.


#2

You should report this at issues.cordova.io as well.


#3

Cool, created on their Jira board


#4

(Post the link here so we can cross reference)


#5

Link for future reference https://issues.apache.org/jira/browse/CB-13609


#6

Still getting this in my crash logs. Anyone solve it?


#7

Yip, I’m also getting crash logs regarding this error. Have you been able to solve it?


#8

We’re seeing the same crash on:

Manufacturer: Samsung
Model: SM-G955F
Board: Universal8895
Android API: 24
Android OS: 7.0
Brand: Samsung
RAM: 3.38GB
Orientation: Portrait

…just in case this info helps anyone in debugging.


#9

I applied this patch manually:

So far so good… will keep looking to see if it comes back.