Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1342] Custom Labels for contact phone numbers cause a crash

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:55.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelscontacts, defect, ios, iphone
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T02:49:54.000+0000
Updated2011-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);
   }

};

Comments

  1. Stephen Tramer 2011-04-15

    Pushing to 1.5.

  2. Jeff Haynie 2011-04-15

    (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...

  3. Stephen Tramer 2011-04-15

    Hmm. For some reason, state:closed doesn't work. Good to remember.

JSON Source