diff options
author | snowleo <schneeleo@gmail.com> | 2011-10-10 11:40:20 +0300 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-10-10 11:40:20 +0300 |
commit | 02ee314ab1832fdf6ade82d6f07d0fccedaab183 (patch) | |
tree | 552297c820f3fa9b4efdd515e2709cf6e8b6ca52 | |
parent | a34c92d55a66339dd71275bb0e0da4bf69b6c4ed (diff) | |
download | Essentials-02ee314ab1832fdf6ade82d6f07d0fccedaab183.tar Essentials-02ee314ab1832fdf6ade82d6f07d0fccedaab183.tar.gz Essentials-02ee314ab1832fdf6ade82d6f07d0fccedaab183.tar.lz Essentials-02ee314ab1832fdf6ade82d6f07d0fccedaab183.tar.xz Essentials-02ee314ab1832fdf6ade82d6f07d0fccedaab183.zip |
Fix NPE in BUY signs
-rw-r--r-- | Essentials/src/com/earth2me/essentials/FakeInventory.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/FakeInventory.java b/Essentials/src/com/earth2me/essentials/FakeInventory.java index e1c3321d2..fef6db7d0 100644 --- a/Essentials/src/com/earth2me/essentials/FakeInventory.java +++ b/Essentials/src/com/earth2me/essentials/FakeInventory.java @@ -15,6 +15,10 @@ public class FakeInventory implements Inventory this.items = new ItemStack[items.length]; for (int i = 0; i < items.length; i++) { + if (items[i] == null) + { + continue; + } this.items[i] = new ItemStack(items[i].getTypeId(), items[i].getAmount(), items[i].getDurability()); } } |