[TIMOB-23441] Android: Crash when using undefined value for separatorStyle
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-05-26T04:17:40.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 5.4.0 |
| Components | Android |
| Labels | n/a |
| Reporter | Ashraf Abu |
| Assignee | Hieu Pham |
| Created | 2016-05-26T04:10:39.000+0000 |
| Updated | 2016-07-12T22:03:24.000+0000 |
Description
This is to address the issue in TIMOB-20258.
[~amurcia] crash is with this line
[ERROR] : TiApplication: at org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:412)
This has nothing to do with the runtime warnings in TIMOB-20258.
This issue is created to address that crash.
A PR has already been created by [~hpham] to address the issue:-
https://github.com/appcelerator/titanium_mobile/pull/8020
Test code:
var win = Ti.UI.createWindow();
var tableView = Ti.UI.createTableView({separatorStyle: Ti.UI.iPhone.TableViewSeparatorStyle.SINGLE_LINE});
win.add(tableView);
win.open();
Expected results:
App should not crash when running on Android. Prior to this. It will crash.
PR https://github.com/appcelerator/titanium_mobile/pull/8020 merged.
Verified the fix. No crash seen with undefined value for seperatorStyle. Closing. Environment: Appc Studio : 4.7.0.201607111053 Ti SDK : 5.4.0.v20160712013704 Ti CLI : 5.0.9 Alloy : 1.9.1 MAC El Capitan : 10.11.5 Appc NPM : 4.2.8-1 Appc CLI : 5.4.0-31 Node: 4.4.4 Nexus 6 - Android 6.0.1