Prevent NPE on processResiultFromGallery when intent comes null

close #22
This commit is contained in:
Manu Garcia Urreta 2014-03-28 20:05:04 -03:00 committed by Andrew Grieve
parent fa93b534d1
commit 5b8324e984

View File

@ -641,7 +641,7 @@ private String ouputModifiedBitmap(Bitmap bitmap, Uri uri) throws IOException {
// If retrieving photo from library
else if ((srcType == PHOTOLIBRARY) || (srcType == SAVEDPHOTOALBUM)) {
if (resultCode == Activity.RESULT_OK) {
if (resultCode == Activity.RESULT_OK && intent != null) {
this.processResultFromGallery(destType, intent);
}
else if (resultCode == Activity.RESULT_CANCELED) {