Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0112F194C4 for ; Wed, 16 Mar 2016 15:55:34 +0000 (UTC) Received: (qmail 25778 invoked by uid 500); 16 Mar 2016 15:55:33 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 25752 invoked by uid 500); 16 Mar 2016 15:55:33 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 25658 invoked by uid 99); 16 Mar 2016 15:55:33 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2016 15:55:33 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8C3E72C1F61 for ; Wed, 16 Mar 2016 15:55:33 +0000 (UTC) Date: Wed, 16 Mar 2016 15:55:33 +0000 (UTC) From: "Sergey Shakhnazarov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-10734) NullPointerException for Fade animation in SplashScreen plugin on android MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-10734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Shakhnazarov updated CB-10734: ------------------------------------- Labels: android no-repro splashscreen triaged wfc (was: android splashscreen) > NullPointerException for Fade animation in SplashScreen plugin on android > ------------------------------------------------------------------------- > > Key: CB-10734 > URL: https://issues.apache.org/jira/browse/CB-10734 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin SplashScreen > Affects Versions: 3.2.0 > Reporter: Harsha Kiran > Labels: android, no-repro, splashscreen, triaged, wfc > > I couldn't replicate the issue on my device, but we see a lot of crash reports in our crashlytics log with below message. So looking at code its crashing on splashImageView.setAnimation(fadeOut); > So checking if splashImageView is null at line:214 might fix this issue. > ```if (fadeSplashScreenDuration > 0)``` > ```Fatal Exception: 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$3.run(SplashScreen.java:219) > at android.app.Activity.runOnUiThread(Activity.java:5766) > at org.apache.cordova.splashscreen.SplashScreen.removeSplashScreen(SplashScreen.java:210) > at org.apache.cordova.splashscreen.SplashScreen.onMessage(SplashScreen.java:180) > at org.apache.cordova.PluginManager.postMessage(PluginManager.java:313) > at org.apache.cordova.CordovaWebViewImpl.postMessage(CordovaWebViewImpl.java:377) > at org.apache.cordova.splashscreen.SplashScreen$1.run(SplashScreen.java:156) > 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:6897) > at java.lang.reflect.Method.invoke(Method.java) > 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)``` > Full details here -> http://crashes.to/s/6b0613ce153 -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org