Skip to content

Commit f729c8a

Browse files
committed
Fixed NullPointerException when breaking/placing certain skulls on Paper servers (fixes #643)
1 parent e5ec7ed commit f729c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/coreprotect/paper/Paper_v1_20.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public String getSkullOwner(Skull skull) {
3434
if (skull.getPlayerProfile().getId() != null) {
3535
owner = skull.getPlayerProfile().getId().toString();
3636
}
37-
else if (Config.getGlobal().MYSQL && owner.length() > 255) {
37+
else if (Config.getGlobal().MYSQL && owner != null && owner.length() > 255) {
3838
return owner.substring(0, 255);
3939
}
4040

0 commit comments

Comments
 (0)