Skip to content

Commit

Permalink
Merge pull request #20845 from wordpress-mobile/issue/20840-NPE
Browse files Browse the repository at this point in the history
Fix NPE in Site Settings
  • Loading branch information
aditi-bhatia committed May 22, 2024
2 parents c3decbc + 421e2df commit 0f7f65b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* [*] Fix a crash that occurs when remove a user [https://github.com/wordpress-mobile/WordPress-Android/pull/20837]
* [*] Fixed a rare crash on the featured image confirmation dialog [https://github.com/wordpress-mobile/WordPress-Android/pull/20836]
* [*] Fixed an ANR issue on the Post List screen [https://github.com/wordpress-mobile/WordPress-Android/pull/20833]
* [*] Fixed a crash that occurs with Blogging Reminders [https://github.com/wordpress-mobile/WordPress-Android/pull/20845]
* [*] [internal] Block Editor: Upgrade target sdk version to Android API 34 [https://github.com/wordpress-mobile/WordPress-Android/pull/20841]
* [*] [internal] In-app updates feature [https://github.com/wordpress-mobile/WordPress-Android/pull/20822]

Expand Down
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()) {
if (mBloggingRemindersPref == null || !isAdded() || mSite == null || mBloggingRemindersViewModel == null) {
return;
}
mBloggingRemindersViewModel.onBlogSettingsItemClicked(mSite.getId());
Expand Down

0 comments on commit 0f7f65b

Please sign in to comment.