From f7e798757353edda4c8fdd0e98b2643e01db40cb Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 29 Jun 2020 09:09:52 +1000 Subject: [PATCH] #696: Respect the NotNull annotation of getChargedProjectiles in CraftMetaCrossbow By: Martoph --- .../org/bukkit/craftbukkit/inventory/CraftMetaCrossbow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaCrossbow.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaCrossbow.java index 15fc0115cb..8d3d39943c 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaCrossbow.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaCrossbow.java @@ -121,7 +121,7 @@ public class CraftMetaCrossbow extends CraftMetaItem implements CrossbowMeta { @Override public List getChargedProjectiles() { - return (chargedProjectiles == null) ? null : ImmutableList.copyOf(chargedProjectiles); + return (chargedProjectiles == null) ? ImmutableList.of() : ImmutableList.copyOf(chargedProjectiles); } @Override