Skip to content

Fix NullPointerException in onBackPressed()#6249

Merged
nicolas-raoul merged 1 commit intocommons-app:mainfrom
sonalyadav1:crash-backpressed
Mar 16, 2025
Merged

Fix NullPointerException in onBackPressed()#6249
nicolas-raoul merged 1 commit intocommons-app:mainfrom
sonalyadav1:crash-backpressed

Conversation

@sonalyadav1
Copy link
Contributor

Description (required)

Fixes #6214

What changes did you make and why?

  • Fixed a NullPointerException crash in MainActivity.kt caused by contributionsFragment being null.
  • Added null checks to prevent app crashes when pressing the back button on the Contributions tab.

Tests performed (required)

Tested {BetaDebug} on {VIVO V 25} with API level {34}.

Screenshots (for UI changes only)

Screenrecording_20250315_202828.mp4

@github-actions
Copy link

✅ Generated APK variants!

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That fixes the crash, thanks! 🙂

@nicolas-raoul nicolas-raoul merged commit 67ac92f into commons-app:main Mar 16, 2025
1 check passed
@sonalyadav1 sonalyadav1 deleted the crash-backpressed branch March 17, 2025 04:32
@nicolas-raoul
Copy link
Member

Hi Sonal,

We have zero candidates so far for this summer's Outreachy internship:

https://www.outreachy.org/outreachy-june-2025-internship-cohort/communities/wikimedia/#improve-the-nearby-feature-of-the-wikimedia-common

If you are interested, please do not hesitate to apply.
About Outreachy and how it works: https://www.outreachy.org

@sonalyadav1
Copy link
Contributor Author

@nicolas-raoul Thank you for sharing this opportunity! I was really interested in applying for the Outreachy internship, but unfortunately, my initial application was not approved.

I wanted to ask if there is any way to reapply or another process to still be considered for Outreachy this round. I’m very eager to contribute to the Nearby feature improvement project and would appreciate any guidance on how I might proceed.

Looking forward to your advice.

@nicolas-raoul
Copy link
Member

Understood, thanks for the fast reply!
That's sad to hear. I am actually quite new to Outreachy, and have no information about appeals... 😓

@misaochan
Copy link
Member

Hey @sonalyadav1 , sorry to hear that. :( We're not very familiar with the admin side of things, but you can contact the org admins for Wikimedia or the Outreachy organizers mailing list, and hopefully they might be able to help you?

If you have any questions, please contact your community coordinators Gopa Vasanth <gopavasanth1999@gmail.com>, "debt (deb tankersley)" <dtankersley@wikimedia.org>, Mahfuza Humayra Mohona <mhmohona@gmail.com>, L Goto <lgoto@wikimedia.org>. Also, you can always reach out to the Outreachy organizers at <organizers@outreachy.org> for support.

@sonalyadav1
Copy link
Contributor Author

Thank you for your response and for sharing these contacts! I’ll reach out to them to understand if there’s any way I can still be considered for Outreachy this round.

@sonalyadav1
Copy link
Contributor Author

@nicolas-raoul and @misaochan I wanted to update you that my Outreachy application has been approved! Thank you so much for your guidance and for encouraging me to apply.

@misaochan
Copy link
Member

@nicolas-raoul and @misaochan I wanted to update you that my Outreachy application has been approved! Thank you so much for your guidance and for encouraging me to apply.

That's fantastic news! :) Feel free to submit your contributions through the Outreachy portal whenever you can, the deadline is 15 April I believe.

@nicolas-raoul
Copy link
Member

Fantastic indeed!

As you know, relevant information is available here: #6237

If any information is missing or if you have any question, please ask on that page, it might help potential other applicants too. :-)

sonalyadav1 added a commit to sonalyadav1/apps-android-commons that referenced this pull request May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: App crashes when pressing the back button on the Nearby screen

3 participants