It's also probably not wise to pass back a corrupt UIImage object initWithData(nil) when there is no image available. Most callees would expect nil here, not a UIImage object when there is no photo
Thanks for paying attention to this part of the code. If you can think of how to build decent automated tests for the image stuff, that would be greatly appreciated.
This shouldn't be needed, as https://developer.apple.com/library/ios/documentation/AddressBook/Reference/ABPersonRef_iPhoneOS/Reference/reference.html#//apple_ref/doc/uid/TP40007210-CH3-SW12 states "The picture for person, or NULL if the person has no picture." but i'm seeing crashes here, lets just be extra explicit here anyways.
It's also probably not wise to pass back a corrupt UIImage object
initWithData(nil)
when there is no image available. Most callees would expect nil here, not aUIImage
object when there is no photo