[
https://issues.apache.org/jira/browse/CB-11078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15373815#comment-15373815
]
ASF GitHub Bot commented on CB-11078:
-------------------------------------
GitHub user akilawickey opened a pull request:
https://github.com/apache/cordova-android/pull/315
CB-11078 fixed "Empty string for BackgroundColor preference crashes
application" issue
A preference of
<preference name="BackgroundColor" value="" />
will cause an a cordova application to crash on startup with a
NumberFormatException:
Fixed the isse
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apache/cordova-android 5.2.x
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-android/pull/315.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #315
----
commit fd1d3006c0f656091e6c45068f8653775eaa65d7
Author: Steve Gill <[email protected]>
Date: 2016-06-29T19:39:42Z
CB-11444 Updated RELEASENOTES and Version for release 5.2.0
commit b32b8c89c6061ffe86161f4ab641cbab605a7aba
Author: Steve Gill <[email protected]>
Date: 2016-06-29T19:51:05Z
Update JS snapshot to version 5.2.0 (via coho)
commit 97ce7dd417ea0e5baf0348d8a267ef3d723bb1a8
Author: Steve Gill <[email protected]>
Date: 2016-06-29T19:51:05Z
Set VERSION to 5.2.0 (via coho)
commit 8416c4e5e9908aeee1445a107bb89decd69954b3
Author: Vivek Kiran <[email protected]>
Date: 2016-06-24T05:08:23Z
CB-11481: android-library is deprecated use com.android.library instead
commit 40d3cdc0d646364c2d118758049f73b78503c68f
Author: Alexander Sorokin <[email protected]>
Date: 2016-07-06T12:12:36Z
CB-9489 Fixed "endless waiting for emulator" issue
commit 89a00c02a40cae162708fd20e93c958ecaa3dbf9
Author: Vladimir Kotikov <[email protected]>
Date: 2016-07-11T10:41:00Z
CB-11550 Updated and checked-in node_modules
commit 81b2bccd977b4237ad2ac10c5e89c9051969b311
Author: Vladimir Kotikov <[email protected]>
Date: 2016-07-11T10:41:30Z
CB-11550 Update JS snapshot to version 5.2.1 (via coho)
commit cbed234069080331084689bfff3354d3b26dbf32
Author: Vladimir Kotikov <[email protected]>
Date: 2016-07-11T10:41:31Z
CB-11550 Set VERSION to 5.2.1 (via coho)
commit 35dfdece12aa0791a081c33af75dbc3f8d4b0c76
Author: Vladimir Kotikov <[email protected]>
Date: 2016-07-11T10:43:38Z
CB-11550 Updated RELEASENOTES for release 5.2.1
----
> Empty string for BackgroundColor preference crashes application
> ---------------------------------------------------------------
>
> Key: CB-11078
> URL: https://issues.apache.org/jira/browse/CB-11078
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Environment: HTC One
> Android 6.0
> Cordova-Android 5.1.0
> Reporter: Ryan Willoughby
> Assignee: Joe Bowser
> Priority: Minor
> Labels: easyfix, triaged
>
> A preference of
> {{<preference name="BackgroundColor" value="" />}}
> will cause an a cordova application to crash on startup with a
> NumberFormatException:
> {color:red}
> 04-13 11:18:29.894: E/AndroidRuntime(20224): java.lang.RuntimeException:
> Unable to start activity
> ComponentInfo{com.whatever.whatever/com.whatever.whatever.ClassName}:
> java.lang.NumberFormatException: Invalid long: ""
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2484)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2544)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> android.app.ActivityThread.access$900(ActivityThread.java:150)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1394)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> android.os.Handler.dispatchMessage(Handler.java:102)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> android.os.Looper.loop(Looper.java:168)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> android.app.ActivityThread.main(ActivityThread.java:5845)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> java.lang.reflect.Method.invoke(Native Method)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): Caused by:
> java.lang.NumberFormatException: Invalid long: ""
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> java.lang.Long.invalidLong(Long.java:124)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> java.lang.Long.decode(Long.java:142)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> org.apache.cordova.CordovaPreferences.getInteger(CordovaPreferences.java:78)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> org.apache.cordova.CordovaActivity.createViews(CordovaActivity.java:178)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> org.apache.cordova.CordovaActivity.init(CordovaActivity.java:142)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:214)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> uk.directpath.staffssmartalert2.StaffsSmartAlertv2.onCreate(StaffsSmartAlertv2.java:32)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> android.app.Activity.performCreate(Activity.java:6248)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1125)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2437)
> 04-13 11:18:29.894: E/AndroidRuntime(20224): ... 9 more
> {color}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]