Skip to content

Commit

Permalink
Should fix all crashes when login for iOS client
Browse files Browse the repository at this point in the history
  • Loading branch information
mingjun97 authored and Melledy committed May 1, 2022
1 parent d3ac090 commit 049086b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ public void start() throws Exception {
responseData.data.account.uid = account.getId();
responseData.data.account.token = account.generateSessionKey();
responseData.data.account.email = account.getEmail();
if (responseData.data.account.email == null) {
responseData.data.account.email = "";
}

Grasscutter.getLogger().info(String.format("[Dispatch] Client %s logged in as %s", req.ip(),
responseData.data.account.uid));
Expand Down

0 comments on commit 049086b

Please sign in to comment.