From eb1daf4a20233ebccc4c31f43f5d0a970de9ee5f Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Mon, 26 Apr 2021 09:29:11 -0300 Subject: [PATCH] Pass exception to thrown AssertionError in shortuct icon generation. --- .../main/java/org/thoughtcrime/securesms/util/AvatarUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/util/AvatarUtil.java b/app/src/main/java/org/thoughtcrime/securesms/util/AvatarUtil.java index cab548580f..d7b43caa1f 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/util/AvatarUtil.java +++ b/app/src/main/java/org/thoughtcrime/securesms/util/AvatarUtil.java @@ -113,7 +113,7 @@ public final class AvatarUtil { } return Icon.createWithAdaptiveBitmap(glideRequest.submit().get()); } catch (ExecutionException | InterruptedException e) { - throw new AssertionError("This call should not fail."); + throw new AssertionError("This call should not fail.", e); } } @@ -126,7 +126,7 @@ public final class AvatarUtil { } return IconCompat.createWithAdaptiveBitmap(glideRequest.submit().get()); } catch (ExecutionException | InterruptedException e) { - throw new AssertionError("This call should not fail."); + throw new AssertionError("This call should not fail.", e); } }