Skip to content

NullPointerException in UploadCategoriesFragment #6246

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

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

sonalyadav1
Copy link
Contributor

Description

Fixes #6240

What changes did you make and why?

(1) Fixed NullPointerException in UploadCategoriesFragment.kt.
(2) Added null checks for adapter and binding in setCategories() and initRecyclerView().
(3) Ensured adapter is initialized before accessing it to prevent crashes.

Tests performed
BetaDebugUnitTest and ProdDebugUnitTest

Tested {BetaDebug} on {VIVO V25} with API level {34}.

Copy link

✅ Generated APK variants!

@misaochan misaochan merged commit e1466c8 into commons-app:main Mar 14, 2025
1 check passed
@sonalyadav1 sonalyadav1 deleted the issue-6240 branch March 15, 2025 04:57
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.

Crash: NullPointerException at UploadCategoriesFragment.setCategories
2 participants