Преглед изворни кода

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) {
 
-        if (itemStack.getType() == null || itemStack.getType() == Material.AIR) {
+        if (itemStack == null || itemStack.getType() == Material.AIR) {
             return;
         }