From 88817fb9a2584254a249d322da25d8baa6fec644 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Mon, 7 Jul 2014 14:56:25 -0500 Subject: [PATCH] If the data passed is empty, return an empty inventory. Try to fix the latest issue reported in #26 --- src/main/java/com/graywolf336/jail/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/graywolf336/jail/Util.java b/src/main/java/com/graywolf336/jail/Util.java index 41ad1ab..7daacef 100644 --- a/src/main/java/com/graywolf336/jail/Util.java +++ b/src/main/java/com/graywolf336/jail/Util.java @@ -247,7 +247,7 @@ public class Util { * @throws IOException */ public static Inventory fromBase64(String data) throws IOException { - if(data.isEmpty()) Bukkit.getServer().createInventory(null, 0); + if(data.isEmpty()) return Bukkit.getServer().createInventory(null, 0); try { ByteArrayInputStream inputStream = new ByteArrayInputStream(Base64Coder.decodeLines(data));