~singpolyma/cheogram-android

d206cff50e4aba1f13def164356ab1c57a6bf6af — Stephen Paul Weber 9 months ago d3b828b
Fix NPE
1 files changed, 2 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/persistance/FileBackend.java
M src/main/java/eu/siacs/conversations/persistance/FileBackend.java => src/main/java/eu/siacs/conversations/persistance/FileBackend.java +2 -0
@@ 1071,6 1071,8 @@ public class FileBackend {
                options.inSampleSize *= 2;
                bitmap = BitmapFactory.decodeFile(file.getAbsolutePath(), options);
            }
            if (bitmap == null) return null;

            bitmap = resize(bitmap, size);
            bitmap = rotate(bitmap, getRotation(file));
            if (mime.equals("image/gif")) {