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
…MC#1881)

(cherry picked from commit 51cc75d)
  • Loading branch information
Sleepybear authored and wode490390 committed Dec 23, 2021
1 parent e21e7ba commit 03e386e
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 @@ -2201,7 +2201,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 03e386e

Please sign in to comment.