From fa308949704543a11700f31728aa56a9f0ca5469 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 22 Oct 2023 20:36:35 -0400 Subject: [PATCH] Fix NPE introduced in #17c30fd By: Jishuna --- .../java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java index 1c69d56724..bc9899dc70 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java @@ -142,7 +142,7 @@ class CraftMetaSkull extends CraftMetaItem implements SkullMeta { // SPIGOT-6558: Set initial textures tag.put(SKULL_OWNER.NBT, serializedProfile); // Fill in textures - PlayerProfile ownerProfile = getOwnerProfile(); + PlayerProfile ownerProfile = new CraftPlayerProfile(profile); // getOwnerProfile may return null if (ownerProfile.getTextures().isEmpty()) { ownerProfile.update().thenAccept((filledProfile) -> { setOwnerProfile(filledProfile);