Closed SheldonYS closed 4 years ago
When I tested with new register user which avatar is not set, the Android app crash. Because the profile.getPictureUrl() at https://github.com/nrikiji/cordova-line-login-plugin/blob/master/src/android/LineLogin.java#L78 is null. I am wondering if you have the same situation for no avatar account.
profile.getPictureUrl()
So I suggest change this line to the following code:
... if (profile.getPictureUrl() != null) { json.put("pictureURL", profile.getPictureUrl().toString()); } ...
Thanks for your consideration!
Thank you for the report. Corrected.
When I tested with new register user which avatar is not set, the Android app crash. Because the
profile.getPictureUrl()
at https://github.com/nrikiji/cordova-line-login-plugin/blob/master/src/android/LineLogin.java#L78 is null. I am wondering if you have the same situation for no avatar account.So I suggest change this line to the following code:
Thanks for your consideration!