mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
add intent!=null check in onActivityResultin PublishProfilePicture
This commit is contained in:
parent
ba143a2730
commit
0619685e55
@ -187,7 +187,7 @@ public class PublishProfilePictureActivity extends XmppActivity {
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (requestCode == Crop.REQUEST_CROP) {
|
||||
if (requestCode == Crop.REQUEST_CROP && data != null) {
|
||||
Throwable throwable = Crop.getError(data);
|
||||
if (throwable != null && throwable instanceof OutOfMemoryError) {
|
||||
Toast.makeText(this,R.string.selection_too_large, Toast.LENGTH_SHORT).show();
|
||||
|
Loading…
Reference in New Issue
Block a user