add intent!=null check in onActivityResultin PublishProfilePicture

This commit is contained in:
Daniel Gultsch 2016-01-20 16:11:17 +01:00
parent ba143a2730
commit 0619685e55
1 changed files with 1 additions and 1 deletions

View File

@ -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();