Fix NPE - Closes #1794

This commit is contained in:
cpw 2015-04-11 17:27:14 -04:00
parent 9671179453
commit 230d757a89

View file

@ -165,7 +165,7 @@ public abstract class FluidRegistry
*/ */
public static boolean isFluidRegistered(Fluid fluid) public static boolean isFluidRegistered(Fluid fluid)
{ {
return fluids.containsKey(fluid.getName()); return fluid != null && fluids.containsKey(fluid.getName());
} }
public static boolean isFluidRegistered(String fluidName) public static boolean isFluidRegistered(String fluidName)