[TIMOB-1342] Custom Labels for contact phone numbers cause a crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | contacts, defect, ios, iphone |
Reporter | ctredway |
Assignee | Blain Hamon |
Created | 2011-04-15T02:49:54.000+0000 |
Updated | 2011-04-17T01:55:55.000+0000 |
Description
A customer reported that when they access a custom label in the contacts this causes the app to crash. I have been able to reproduce this on OS 4 and our latest from HEAD.
Code:
var contacts = [];
contacts = Titanium.Contacts.getAllPeople();
for (var i = 0; i < contacts.length; i++) {
var c = contacts[i];
//var fName = c.fullName.replace(/[^a-zA-z0-9 ]/g, '');
try {
Ti.API.log(c.phone);
}
catch(err)
{
Ti.API.log('ERROR: '+err);
}
};
Pushing to 1.5.
(from [ea14ab647ae00a96025c26d254060c0de222e1e9]) [#1342 state:closed] Fix for custom labels in contacts. http://github.com/appcelerator/titanium_mobile/commit/ea14ab647ae00a96025c26d254060c0de222e1e9"> http://github.com/appcelerator/titanium_mobile/commit/ea14ab647ae00...
Hmm. For some reason, state:closed doesn't work. Good to remember.