mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-09-18 21:54:50 +00:00
SPIGOT-7791: Skull BlockState with null profile causes NullPointerException
This commit is contained in:
parent
5e46f1c821
commit
820084b5f6
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ public class CraftSkull extends CraftBlockEntityState<TileEntitySkull> implement
|
|||
super.applyTo(skull);
|
||||
|
||||
if (getSkullType() == SkullType.PLAYER) {
|
||||
skull.setOwner(new ResolvableProfile(profile));
|
||||
skull.setOwner((profile != null) ? new ResolvableProfile(profile) : null);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue