Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-1342

Custom Labels for contact phone numbers cause a crash

    Details

      Description

      {html}<div><p>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.</p>
      <p>Code:<br>
      var contacts = [];<br>
      contacts = Titanium.Contacts.getAllPeople();</p>
      <p>for (var i = 0; i < contacts.length; i++) {<br></p>
      <pre>
      <code>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); }</code>
      </pre>
      <p>};</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              blainhamon Blain Hamon
              Reporter:
              ctredway1 ctredway
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-1249
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration