You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/01/09 08:01:03 UTC
[GitHub] ihaoqichan opened a new issue #178: Android occur crash by
java.lang.NullPointerException
ihaoqichan opened a new issue #178: Android occur crash by java.lang.NullPointerException
URL: https://github.com/apache/cordova-plugin-splashscreen/issues/178
Logcat message:
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setAnimation(android.view.animation.Animation)' on a null object reference
at org.apache.cordova.splashscreen.SplashScreen$4.run(SplashScreen.java:230)
at android.app.Activity.runOnUiThread(Activity.java:6216)
at org.apache.cordova.splashscreen.SplashScreen.removeSplashScreen(SplashScreen.java:220)
at org.apache.cordova.splashscreen.SplashScreen.access$1000(SplashScreen.java:50)
at org.apache.cordova.splashscreen.SplashScreen$5$1.run(SplashScreen.java:337)
=======================================================
My config.xml setup <preference name="SplashScreenDelay" value="10000" />,
when my application launched and invoke navigator.splashscreen.hide() in 3 seconds,
if it launch again in 7 seconds, crash occurs.
=======================================================
My solution: add splashImageView != null at org.apache.cordova.splashscreen.SplashScreen.removeSplashScreen(SplashScreen.java:222)
I'm sorry, my english is not so good.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org