浏览代码

ACTUALLY fix the NPE this time.

GJ 12 年之前
父节点
当前提交
d68dfe2a32
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/gmail/nossr50/util/Misc.java

+ 1 - 1
src/main/java/com/gmail/nossr50/util/Misc.java

@@ -344,7 +344,7 @@ public final class Misc {
      */
      */
     public static void dropItem(Location location, ItemStack itemStack) {
     public static void dropItem(Location location, ItemStack itemStack) {
 
 
-        if (itemStack.getType() == null || itemStack.getType() == Material.AIR) {
+        if (itemStack == null || itemStack.getType() == Material.AIR) {
             return;
             return;
         }
         }