From e9e6f894b3a21122e261b09ef66b45d5dcb863ab Mon Sep 17 00:00:00 2001 From: sk89q Date: Wed, 19 Jan 2011 02:05:20 -0800 Subject: [PATCH] Fixed NullPointerExceptions that appeared while saving a chest. --- src/com/sk89q/worldedit/bukkit/BukkitWorld.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/sk89q/worldedit/bukkit/BukkitWorld.java b/src/com/sk89q/worldedit/bukkit/BukkitWorld.java index 33e073a35..88ed8b7f4 100644 --- a/src/com/sk89q/worldedit/bukkit/BukkitWorld.java +++ b/src/com/sk89q/worldedit/bukkit/BukkitWorld.java @@ -105,7 +105,7 @@ public class BukkitWorld extends LocalWorld { @Override public BaseItemStack[] getChestContents(Vector pt) { // TODO Auto-generated method stub - return null; + return new BaseItemStack[0]; } @Override @@ -129,7 +129,7 @@ public class BukkitWorld extends LocalWorld { @Override public String getMobSpawnerType(Vector pt) { // TODO Auto-generated method stub - return null; + return ""; } @Override