diff options
Diffstat (limited to 'library/src/main/java/com/bumptech/glide/load/resource/gif/GifDrawable.java')
-rw-r--r-- | library/src/main/java/com/bumptech/glide/load/resource/gif/GifDrawable.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/src/main/java/com/bumptech/glide/load/resource/gif/GifDrawable.java b/library/src/main/java/com/bumptech/glide/load/resource/gif/GifDrawable.java index 68e6a788..47e06fb5 100644 --- a/library/src/main/java/com/bumptech/glide/load/resource/gif/GifDrawable.java +++ b/library/src/main/java/com/bumptech/glide/load/resource/gif/GifDrawable.java @@ -75,6 +75,10 @@ public class GifDrawable extends GlideDrawable implements GifFrameManager.FrameC } GifDrawable(GifState state) { + if (state == null) { + throw new NullPointerException("GifState must not be null"); + } + this.state = state; this.decoder = new GifDecoder(state.bitmapProvider); decoder.setData(state.gifHeader, state.data); |