Fixed crashed on cancelled download in gallery

This commit is contained in:
David A. Velasco 2015-09-22 09:29:33 +02:00
parent 903497906e
commit b7bb1ec0e9

View file

@ -476,7 +476,7 @@ public class PreviewImageFragment extends FileFragment {
@Override
protected void onCancelled(LoadImage result) {
if (result.bitmap != null) {
if (result != null && result.bitmap != null) {
result.bitmap.recycle();
}
}