From cf01fd9d7d5299dfef51d5293dfe20811c0fb0f3 Mon Sep 17 00:00:00 2001 From: Martoph Date: Mon, 29 Jun 2020 09:09:52 +1000 Subject: [PATCH] #696: Respect the NotNull annotation of getChargedProjectiles in CraftMetaCrossbow --- .../org/bukkit/craftbukkit/inventory/CraftMetaCrossbow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaCrossbow.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaCrossbow.java index 15fc0115cb..8d3d39943c 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaCrossbow.java +++ b/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