B-Sides / ELCImagePickerController

A clone of the UIImagePickerController using the Assets Library Framework allowing for multiple asset selection
http://www.icodeblog.com
1.65k stars 469 forks source link

Fixed nil image crash on shared photo streams #71

Closed mfrawley closed 10 years ago

mfrawley commented 10 years ago

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.

skrings commented 10 years ago

:+1:

jvanmetre commented 10 years ago

Thanks mfrawley for this fix.

mfrawley commented 10 years ago

Thanks for integrating it.

NehaEnstrapp commented 3 years ago

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: UIImagePickerControllerOriginalImage)'

getting this crash