mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-12-25 17:18:08 +01:00
Fixed NullPointerException when breaking/placing certain skulls on Paper servers (fixes #643)
This commit is contained in:
parent
e5ec7ede72
commit
f729c8a126
@ -34,7 +34,7 @@ public class Paper_v1_20 extends Paper_v1_17 implements PaperInterface {
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user