mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
Fixed crashed on cancelled download in gallery
This commit is contained in:
parent
903497906e
commit
b7bb1ec0e9
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue