From 7817e38e5f6f0122e8f41346092609c34ba4b518 Mon Sep 17 00:00:00 2001 From: AsamK Date: Sat, 7 Jan 2017 16:39:19 +0100 Subject: [PATCH] Fix crash when clicking on a gif image For gif images, the dimensions is always null. Closes #6021 //FREEBIE --- src/org/thoughtcrime/securesms/components/ZoomingImageView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/components/ZoomingImageView.java b/src/org/thoughtcrime/securesms/components/ZoomingImageView.java index 37e06ed982..e205b295b4 100644 --- a/src/org/thoughtcrime/securesms/components/ZoomingImageView.java +++ b/src/org/thoughtcrime/securesms/components/ZoomingImageView.java @@ -86,7 +86,7 @@ public class ZoomingImageView extends FrameLayout { } protected void onPostExecute(@Nullable Pair dimensions) { - Log.w(TAG, "Dimensions: " + dimensions.first + ", " + dimensions.second); + Log.w(TAG, "Dimensions: " + (dimensions == null ? "(null)" : dimensions.first + ", " + dimensions.second)); if (dimensions == null || (dimensions.first <= maxTextureSize && dimensions.second <= maxTextureSize)) { Log.w(TAG, "Loading in standard image view...");