From 776d351ab2c6fc15d41be14fcdf6433c20b7969b Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Tue, 4 Sep 2018 07:01:11 -0500 Subject: [PATCH] Extra null patch check --- .../java/org/dynmap/modsupport/impl/ModModelDefinitionImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/DynmapCore/src/main/java/org/dynmap/modsupport/impl/ModModelDefinitionImpl.java b/DynmapCore/src/main/java/org/dynmap/modsupport/impl/ModModelDefinitionImpl.java index 8c0ec08a..7a14b17f 100644 --- a/DynmapCore/src/main/java/org/dynmap/modsupport/impl/ModModelDefinitionImpl.java +++ b/DynmapCore/src/main/java/org/dynmap/modsupport/impl/ModModelDefinitionImpl.java @@ -247,6 +247,7 @@ public class ModModelDefinitionImpl implements ModModelDefinition { // Loop through patch definitions for (int i = 0; i < blkPatch.size(); i++) { PatchDefinition pd = blkPatch.get(i); + if (pd == null) continue; String line = String.format(Locale.US, "patch:id=patch%d,Ox=%f,Oy=%f,Oz=%f,Ux=%f,Uy=%f,Uz=%f,Vx=%f,Vy=%f,Vz=%f,Umin=%f,Umax=%f,Vmin=%f,Vmax=%f,VmaxAtUMax=%f,VminAtUMax=%f", i, pd.x0, pd.y0, pd.z0, pd.xu, pd.yu, pd.zu, pd.xv, pd.yv, pd.zv, pd.umin, pd.umax, pd.vmin, pd.vmax, pd.vmaxatumax, pd.vminatumax); switch (pd.sidevis) {