[
https://issues.apache.org/jira/browse/CB-7546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14142125#comment-14142125
]
Justin Noel commented on CB-7546:
---------------------------------
I'm still getting this error.
Plugin version : 0.2.13
Xcode : Version 6.0.1 (6A317)
Cordova : 3.5.0-0.2.7
iOS 7.1.2
Installed plugin:
> cordova plugin add https://github.com/apache/cordova-plugin-contacts
When app launches for first, get the following errors at same time iOS is
asking for app to get contacts access:
2014-09-20 07:07:05.369 Kids In Touch[316:60b] Exception - Name:
NSRangeException Reason: *** -[__NSArrayM objectAtIndex:]: index 0 beyond
bounds for empty array
AB: Could not compile statement for query
(ABCCopyArrayOfAllInstancesOfClassInSourceMatchingProperties):
SELECT ROWID, Name, ExternalIdentifier, Type, ConstraintsPath,
ExternalModificationTag, ExternalSyncTag, AccountID, Enabled, SyncData,
MeIdentifier, Capabilities FROM ABStore WHERE Enabled = ?;
2014-09-20 07:07:05.552 Kids In Touch[316:60b] THREAD WARNING: ['Contacts']
took '184.859131' ms. Plugin should use a background thread.
AB: Could not compile statement for query
(ABCCopyArrayOfAllInstancesOfClassInSourceMatchingProperties):
SELECT ROWID, Name, ExternalIdentifier, Type, ConstraintsPath,
ExternalModificationTag, ExternalSyncTag, AccountID, Enabled, SyncData,
MeIdentifier, Capabilities FROM ABStore WHERE Enabled = ?;
After app is closed and reopened, get the following errors:
2014-09-20 12:14:55.965 Kids In Touch[355:60b] Exception - Name:
NSRangeException Reason: *** -[__NSArrayM objectAtIndex:]: index 0 beyond
bounds for empty array
2014-09-20 12:14:56.095 Kids In Touch[355:60b] THREAD WARNING: ['Contacts']
took '132.219238' ms. Plugin should use a background thread.
> [Contacts][iOS] pickContact shows exception in the console log
> --------------------------------------------------------------
>
> Key: CB-7546
> URL: https://issues.apache.org/jira/browse/CB-7546
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS, Plugin Contacts
> Reporter: Shazron Abdullah
> Assignee: Shazron Abdullah
>
> Exception - Name: NSRangeException Reason: *** -[__NSArrayM objectAtIndex:]:
> index 0 beyond bounds for empty array
> This is caught however, but we should guard against this better.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)