stormpath / stormpath-sdk-android

Android library for Stormpath
http://www.stormpath.com
Apache License 2.0
18 stars 15 forks source link

Register callback error in ApiManager #32

Closed ksilha closed 7 years ago

ksilha commented 7 years ago

In API manager, in the call back for a successful registration, an error gets thrown after new Account gets created.

On line 24 of ApiManager.java: String sessionTokens[] = {"PLACEHOLDER"}; String accessToken = sessionTokens[0]; String refreshToken = sessionTokens[1];

Only one element gets set in sessionTokens, so sessionTokens[1] throws error: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1

edjiang commented 7 years ago

Hey @ksilha: thanks for letting me know! I missed something when making the 2.0 release, and need to get it fixed =] Will do within the next 24 hours.

edjiang commented 7 years ago

Should be fixed! Check out 2.0.1 on gradle. Sorry about this!

ksilha commented 7 years ago

Thank you @edjiang ! The fix works great!