Closed igorbljahhin closed 6 years ago
@igorbljahhin Wow. Thank you for reporting. I will take a look.
@igorbljahhin As I see from code, it can only happen if you pass null phone number to method MobileIDAuthenticator.startLogin()
. So it's a bug in your code, right?
No, the method com.codeborne.security.mobileid.MobileIDAuthenticator#startLogin(java.lang.String, java.lang.String, java.lang.String) is protected, I can't call it. I call com.codeborne.security.mobileid.MobileIDAuthenticator#startLogin(java.lang.String, java.lang.String):
Why you need to call method startLogin(String personalCode, String countryCode)
without phone number? Is it really a valid way to use MobleID? Probably we just need to delete this method?
Our task was to implemented login procedure using MobilID by personal identification ID. That's why I tried to use this method. But now, after looking around at other sites, I guess, you are right, phone number should be mandatory, but personal identification ID should be optional.
The fix has been released as version 1.2: http://search.maven.org/#search%7Cga%7C1%7Cmobileid
The method com.codeborne.security.mobileid.MobileIDAuthenticator#startLogin(java.lang.String, java.lang.String) is always failing with NPE: