CountryCodePickerProject: NullPointerException for setSelectedCountry()
I got this error but i am not able to solve it can you please help me I have opt prelaunch report in play store and play store give me this error
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.hbb20.Country.getNameCode()' on a null object reference at com.hbb20.CountryCodePicker.setSelectedCountry(CountryCodePicker.java:497) at com.hbb20.CountryCodeAdapter$4.onClick(CountryCodeAdapter.java:192) at android.view.View.performClick(View.java:6219) at android.view.View$PerformClick.run(View.java:24482) at android.os.Handler.handleCallback(Handler.java:769) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (8 by maintainers)
I found the cause. That is something which can be triggered only by automated tests and not with human interaction. Still, I will fix it in an upcoming release.
yes i have updated latest one