mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-12-26 17:27:34 +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) {
|
if (skull.getPlayerProfile().getId() != null) {
|
||||||
owner = skull.getPlayerProfile().getId().toString();
|
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);
|
return owner.substring(0, 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user