Skip to content

Commit

Permalink
Fix rare server crash from hack clients trying to connect (Cloudburst…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleepybear authored Aug 7, 2021
1 parent a00089c commit 51cc75d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cn/nukkit/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -2199,7 +2199,7 @@ public boolean isWhitelisted(String name) {
}

public boolean isOp(String name) {
return this.operators.exists(name, true);
return name != null && this.operators.exists(name, true);
}

public Config getWhitelist() {
Expand Down

0 comments on commit 51cc75d

Please sign in to comment.