mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-27 22:18:09 +00:00
Should fix all crashes when login for iOS client
This commit is contained in:
parent
8a655c16eb
commit
15d2795686
@ -346,6 +346,9 @@ public final class DispatchServer {
|
|||||||
responseData.data.account.uid = account.getId();
|
responseData.data.account.uid = account.getId();
|
||||||
responseData.data.account.token = account.generateSessionKey();
|
responseData.data.account.token = account.generateSessionKey();
|
||||||
responseData.data.account.email = account.getEmail();
|
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(),
|
Grasscutter.getLogger().info(String.format("[Dispatch] Client %s logged in as %s", req.ip(),
|
||||||
responseData.data.account.uid));
|
responseData.data.account.uid));
|
||||||
|
Loading…
Reference in New Issue
Block a user