hbb20 / hbb20/CountryCodePickerProject

Fatal Exception: java.lang.NullPointerException getNameCode() on a null object reference

Open
#485 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.5k
Forks
509
PR merge metrics
No merged PRs in 30d

Description

Fatal Exception: java.lang.NullPointerException
Attempt to invoke virtual method 'java.lang.String com.hbb20.CCPCountry.getNameCode()' on a null object reference
com.hbb20.CountryCodePicker.setCustomDefaultLanguage (CountryCodePicker.java:1064)
com.hbb20.CountryCodePicker.changeDefaultLanguage (CountryCodePicker.java:1996)

Please add null check in selectedCCPCountry.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in CountryCodePicker.java at setCustomDefaultLanguage line 1064 and changeDefaultLanguage line 1996, following how selectedCCPCountry is used. Confirm the reported null path and add the requested null check; done means the language-change flow no longer invokes getNameCode() on a null selected country.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.