-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix NPE in Site Settings #20845
Fix NPE in Site Settings #20845
Conversation
📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
|
The crash message is |
Hi @irfano thanks for taking a look 👍
From what I understand,
Good point, thank you for catching that! I've added a null check for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally feel that it's safer to have than not
I agree!
LGTM! 👍🏻 I'm not merging since you may want to add this fix to RELEASE-NOTES.
Thanks @irfano, I updated the release notes 👍 For future reference, how do we decide which bug/crash fixes to include there? I noticed a few other crash fixes didn't update this file. |
Quality Gate passedIssues Measures |
I usually add every change that affects users to release notes, but if it's a minor change, with * indicator. More detail:
|
Awesome, thank for you sharing! |
Fixes #20840
This PR fixes a crash in
SiteSettingsFragment
wheremBloggingRemindersViewModel.onBlogSettingsItemClicked()
is called on a null object.To Test:
I haven't been able to reproduce this crash, so code review + smoke test
My Site -> Site Settings -> Blogging -> Reminders
.Regression Notes
Potential unintended areas of impact
What I did to test those areas of impact (or what existing automated tests I relied on)
What automated tests I added (or what prevented me from doing so)
PR Submission Checklist:
RELEASE-NOTES.txt
if necessary.Testing Checklist (strike-out the not-applying and unnecessary ones):
WordPress.com sites and self-hosted Jetpack sites.Portrait and landscape orientations.Light and dark modes.Fonts: Larger, smaller and bold text.High contrast.Talkback.Languages with large words or with letters/accents not frequently used in English.Right-to-left languages. (Even if translation isn’t complete, formatting should still respect the right-to-left layout)Large and small screen sizes. (Tablet and smaller phones)Multi-tasking: Split screen and Pop-up view. (Android 10 or higher)