Skip to content

Commit 0f7f65b

Browse files
authored
Merge pull request #20845 from wordpress-mobile/issue/20840-NPE
Fix NPE in Site Settings
2 parents c3decbc + 421e2df commit 0f7f65b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

RELEASE-NOTES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* [*] Fix a crash that occurs when remove a user [https://github.com/wordpress-mobile/WordPress-Android/pull/20837]
88
* [*] Fixed a rare crash on the featured image confirmation dialog [https://github.com/wordpress-mobile/WordPress-Android/pull/20836]
99
* [*] Fixed an ANR issue on the Post List screen [https://github.com/wordpress-mobile/WordPress-Android/pull/20833]
10+
* [*] Fixed a crash that occurs with Blogging Reminders [https://github.com/wordpress-mobile/WordPress-Android/pull/20845]
1011
* [*] [internal] Block Editor: Upgrade target sdk version to Android API 34 [https://github.com/wordpress-mobile/WordPress-Android/pull/20841]
1112
* [*] [internal] In-app updates feature [https://github.com/wordpress-mobile/WordPress-Android/pull/20822]
1213

WordPress/src/main/java/org/wordpress/android/ui/prefs/SiteSettingsFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ private void initBloggingReminders() {
13011301
}
13021302

13031303
private void setupBloggingRemindersBottomSheet() {
1304-
if (mBloggingRemindersPref == null || !isAdded()) {
1304+
if (mBloggingRemindersPref == null || !isAdded() || mSite == null || mBloggingRemindersViewModel == null) {
13051305
return;
13061306
}
13071307
mBloggingRemindersViewModel.onBlogSettingsItemClicked(mSite.getId());

0 commit comments

Comments
 (0)