Skip to content

Commit

Permalink
Fixing SessionId from json converter to better handle the case of nul…
Browse files Browse the repository at this point in the history
…l sessionId
  • Loading branch information
barancev committed Oct 5, 2014
1 parent 65f9399 commit 4114a07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private <T> T convert(Class<T> clazz, Object text, int depth) {
JsonObject json = new JsonParser().parse((String) text).getAsJsonObject();

SessionId sessionId = null;
if (json.has("sessionId")) {
if (json.has("sessionId") && !json.get("sessionId").isJsonNull()) {
sessionId = convert(SessionId.class, json.get("sessionId"), depth + 1);
}

Expand Down

0 comments on commit 4114a07

Please sign in to comment.