Panagiotis Triantafyllou

fixed verifyTicket

......@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'ly.warp'
PUBLISH_VERSION = '4.5.5.4r35'
PUBLISH_VERSION = '4.5.5.4r36'
PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
}
......
......@@ -1060,8 +1060,8 @@ public class WarplyManager {
e.printStackTrace();
}
if (jobjLoginResponse != null && jobjLoginResponse.has("status") && jobjLoginResponse.optString("status", "2").equals("1")) {
JSONObject tokens = jobjLoginResponse.optJSONObject("result");
if (jobjLoginResponse != null && jobjLoginResponse.has("result") && jobjLoginResponse.optString("result", "2").equals("1")) {
JSONObject tokens = jobjLoginResponse.optJSONObject("tokens");
if (tokens != null) {
WarplyDBHelper.getInstance(Warply.getWarplyContext()).saveClientAccess(
tokens.optString("client_id", ""),
......