Skip to content

Commit 16330d5

Browse files
authored
Allow null titleId
1 parent 0883ed5 commit 16330d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/cn/nukkit/utils/ClientChainData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ private void decodeChainData() {
249249
if (extra.has("displayName")) this.username = extra.get("displayName").getAsString();
250250
if (extra.has("identity")) this.clientUUID = UUID.fromString(extra.get("identity").getAsString());
251251
if (extra.has("XUID")) this.xuid = extra.get("XUID").getAsString();
252-
if (extra.has("titleId")) this.titleId = extra.get("titleId").getAsString();
252+
if (extra.has("titleId") && extra.get("titleId") != null) this.titleId = extra.get("titleId").getAsString();
253253
}
254254

255255
if (chainMap.has("identityPublicKey")) {

0 commit comments

Comments
 (0)