-
Notifications
You must be signed in to change notification settings - Fork 96
NullPointerException on Version 5.0.0 #39
Comments
Hi tysheng. Thanks for your report. Would you mind provide a procedure or video to reproduce this bug? Like "click A -> input B". |
@CFFChi Sorry, I cannot reproduce this case myself. But there is another crash case I found.
I guess its cause is that you guys added WhatsApp verification in 5.0.0, will fetch the WhatsApp number when entering AccountKitActivity if there is no default phone number. Back to the NPE situation, I add one more code to Init phone number
Does the PhoneNumber lead to NPE? Or SmsWhiteList? I cannot reproduce, hope you guys can test in different combinations. Thanks. |
Thanks. I can reproduce it now!=D |
@CFFChi any release updates? |
if user back from [input code] to [enter phone number] page , this would happen. for a Vietnam phone number(countryCode:84), should this line public int getIndexOfCountryCode(String countryCode) {
if (Utility.isNullOrEmpty(countryCode)) {
return -1;
} else {
int length = this.phoneCountryCodes.length;
for(int i = 0; i < length; ++i) {
if (countryCode.equalsIgnoreCase(this.phoneCountryCodes[i].isoCode)) {
return i;
}
}
return -1;
}
} could you guys fix this?🤣 |
update: fixed in sdk v5.2.0 |
It occurred in production environment, varied from android 4 to 7.
Here is the stack trace.
Seems the problem is from PhoneContentController
The text was updated successfully, but these errors were encountered: