Skip to content

Commit

Permalink
Null check when getting options
Browse files Browse the repository at this point in the history
  • Loading branch information
BakkerTom committed Jun 4, 2024
1 parent 5f67d5d commit 7173a21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@efteling/react-native-fast-image",
"version": "9.0.5",
"version": "9.0.6",
"description": "FastImage, performant React Native image component.",
"keywords": [
"cache",
Expand Down

0 comments on commit 7173a21

Please sign in to comment.