We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64d4df6 commit 777806cCopy full SHA for 777806c
AndroidSDKCore/src/main/java/com/leanplum/Leanplum.java
@@ -900,8 +900,10 @@ private static void handleStartResponse(final JSONObject response) {
900
}
901
902
903
- String token = response.optString(Constants.Keys.TOKEN, null);
904
- APIConfig.getInstance().setToken(token);
+ String token = response.optString(Constants.Keys.TOKEN);
+ if (!token.isEmpty()) {
905
+ APIConfig.getInstance().setToken(token);
906
+ }
907
908
applyContentInResponse(response);
909
0 commit comments