Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23441] Android: Crash when using undefined value for separatorStyle

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-05-26T04:17:40.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.4.0
ComponentsAndroid
Labelsn/a
ReporterAshraf Abu
AssigneeHieu Pham
Created2016-05-26T04:10:39.000+0000
Updated2016-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.

Comments

  1. Ashraf Abu 2016-05-26

    PR https://github.com/appcelerator/titanium_mobile/pull/8020 merged.
  2. Lokesh Choudhary 2016-07-12

    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

JSON Source