Skip to content

Commit

Permalink
Check for channel info before refreshing preview
Browse files Browse the repository at this point in the history
Closes #368
  • Loading branch information
samfundev committed Jul 27, 2022
1 parent 37eceee commit 0070af3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public void refreshPreview(Context context, Runnable callback) {
TwireApplication.backgroundPoster.post(() -> {
ChannelInfo mChannelInfo = Service.getStreamerInfoFromUserId(getUserId(), context);

if (logoURL != mChannelInfo.getLogoURL()) {
if (mChannelInfo != null && logoURL != mChannelInfo.getLogoURL()) {
logoURL = mChannelInfo.getLogoURL();
callback.run();

Expand Down

0 comments on commit 0070af3

Please sign in to comment.