From 1d47940debcd7b56e788e039fea2050f3b707f07 Mon Sep 17 00:00:00 2001 From: Kernel Srinivas Date: Tue, 21 Feb 2023 18:49:13 +0530 Subject: [PATCH] null object makes app crash --- .../java/com/dylanvann/fastimage/FastImageViewConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/dylanvann/fastimage/FastImageViewConverter.java b/android/src/main/java/com/dylanvann/fastimage/FastImageViewConverter.java index 86ca00d01..cabea54dc 100644 --- a/android/src/main/java/com/dylanvann/fastimage/FastImageViewConverter.java +++ b/android/src/main/java/com/dylanvann/fastimage/FastImageViewConverter.java @@ -108,7 +108,7 @@ static RequestOptions getOptions(Context context, FastImageSource imageSource, R .priority(priority) .placeholder(TRANSPARENT_DRAWABLE); - if (imageSource.isResource()) { + if (imageSource != null && imageSource.isResource()) { // Every local resource (drawable) in Android has its own unique numeric id, which are // generated at build time. Although these ids are unique, they are not guaranteed unique // across builds. The underlying glide implementation caches these resources. To make