Closed mfrawley closed 10 years ago
:+1:
Thanks mfrawley for this fix.
Thanks for integrating it.
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: UIImagePickerControllerOriginalImage)'
getting this crash
Fix for issue #58
This check is required according to the docs for defaultRepresentation (it will return nil for partially loaded images), an optional enhancement would be to listen for the ALAssetsLibraryChangedNotification. I have only implemented the former rule and defensive check.