Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

protected delegate against existence and making sure it actually resp…

…onds!
  • Loading branch information...
commit fdf249ebb734324c4768629d214b21289aeb0b5a 1 parent 4d19539
Tony Million authored June 26, 2011

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  ABAddressBook.m
3  ABAddressBook.m
@@ -172,7 +172,8 @@ - (void) revert
172 172
 
173 173
 - (void) _handleExternalChangeCallback
174 174
 {
175  
-    [_delegate addressBookDidChange: self];
  175
+    if(_delegate && [_delegate respondsToSelector:@selector(addressBookDidChange:)])
  176
+        [_delegate addressBookDidChange: self];
176 177
 	
177 178
 	[[NSNotificationCenter defaultCenter] postNotificationName:ABAddressBookDidChangeNotification object:self];
178 179
 }

0 notes on commit fdf249e

Please sign in to comment.
Something went wrong with that request. Please try again.