From 621e2d5ba6ee563f396c0b46521b3ce22fd8d226 Mon Sep 17 00:00:00 2001 From: Olivier Payen Date: Wed, 1 Apr 2020 20:43:59 +0200 Subject: [PATCH] Mark RequestListener.onLoadFailed() model parameter as Nullable --- .../java/com/bumptech/glide/request/RequestListener.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/src/main/java/com/bumptech/glide/request/RequestListener.java b/library/src/main/java/com/bumptech/glide/request/RequestListener.java index bb3b48d465..68677d93da 100644 --- a/library/src/main/java/com/bumptech/glide/request/RequestListener.java +++ b/library/src/main/java/com/bumptech/glide/request/RequestListener.java @@ -59,7 +59,10 @@ public interface RequestListener { * Target#onLoadFailed(Drawable)} to be called on {@code target}. */ boolean onLoadFailed( - @Nullable GlideException e, Object model, Target target, boolean isFirstResource); + @Nullable GlideException e, + @Nullable Object model, + Target target, + boolean isFirstResource); /** * Called when a load completes successfully, immediately before {@link