Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit cb5cf5f

Browse files
kunall17niftynei
authored andcommitted
Fixed NPE for URLS in GravatarAsyncFetchTask
1 parent 0b2c8bf commit cb5cf5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/zulip/android/networking/GravatarAsyncFetchTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public GravatarAsyncFetchTask(ZulipActivity context, ImageView imageView,
4444
@Override
4545
protected Bitmap doInBackground(URL... urls) {
4646
try {
47-
return fetch(urls[0]);
47+
if (urls[0] != null) return fetch(urls[0]);
4848
} catch (IOException e) {
4949
ZLog.logException(e);
5050
}

0 commit comments

Comments
 (0)