Skip to content

Commit

Permalink
Add null check to mBloggingRemindersViewModel
Browse files Browse the repository at this point in the history
  • Loading branch information
aditi-bhatia committed May 20, 2024
1 parent 97fda0b commit d9d3629
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ private void initBloggingReminders() {
}

private void setupBloggingRemindersBottomSheet() {
if (mBloggingRemindersPref == null || !isAdded() || mSite == null) {
if (mBloggingRemindersPref == null || !isAdded() || mSite == null || mBloggingRemindersViewModel == null) {
return;
}
mBloggingRemindersViewModel.onBlogSettingsItemClicked(mSite.getId());
Expand Down

0 comments on commit d9d3629

Please sign in to comment.