Skip to content

Commit

Permalink
Fixed NullPointerException when breaking/placing certain skulls on Pa…
Browse files Browse the repository at this point in the history
…per servers (fixes #643)
  • Loading branch information
Intelli committed Dec 6, 2024
1 parent e5ec7ed commit f729c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/coreprotect/paper/Paper_v1_20.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public String getSkullOwner(Skull skull) {
if (skull.getPlayerProfile().getId() != null) {
owner = skull.getPlayerProfile().getId().toString();
}
else if (Config.getGlobal().MYSQL && owner.length() > 255) {
else if (Config.getGlobal().MYSQL && owner != null && owner.length() > 255) {
return owner.substring(0, 255);
}

Expand Down

0 comments on commit f729c8a

Please sign in to comment.