Extra null patch check

This commit is contained in:
Mike Primm 2018-09-04 07:01:11 -05:00
parent fd990cb104
commit 776d351ab2

View File

@ -247,6 +247,7 @@ public class ModModelDefinitionImpl implements ModModelDefinition {
// Loop through patch definitions // Loop through patch definitions
for (int i = 0; i < blkPatch.size(); i++) { for (int i = 0; i < blkPatch.size(); i++) {
PatchDefinition pd = blkPatch.get(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", 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); 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) { switch (pd.sidevis) {