Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test crash if access to address book is not granted #90

Open
GoogleCodeExporter opened this issue Aug 12, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

Repro steps:

1. Checkout
2. Open project
3. Run unit tests
4. When prompted, do not allow "otest" to access address book
5. Crash on GTMABAddressBook.m:84

ABGetSharedAddressBook() returns nil if access is not granted. Trying to retain 
nil will cause a crash (I'm using OS X 10.8). I have attached a patch that 
checks for nil before attempting to retain. This avoids the crash, though the 
unit tests will obviously fail.

Original issue reported on code.google.com by [email protected] on 19 Feb 2013 at 8:43

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant