Add null check to Heightmap processor "just in case"

Fixes #1592
Dieser Commit ist enthalten in:
dordsor21 2022-02-16 18:55:52 +00:00 committet von Jordan
Ursprung f8e6feb1f2
Commit f60aa0b418

Datei anzeigen

@ -86,8 +86,9 @@ public class HeightmapProcessor implements IBatchProcessor {
} else if (getSection == null) { } else if (getSection == null) {
getSection = get.load(layer); getSection = get.load(layer);
// skip empty layer // skip empty layer
if (Arrays.equals(getSection, FaweCache.INSTANCE.EMPTY_CHAR_4096) if (getSection == null ||
|| Arrays.equals(getSection, AIR_LAYER)) { Arrays.equals(getSection, FaweCache.INSTANCE.EMPTY_CHAR_4096) ||
Arrays.equals(getSection, AIR_LAYER)) {
hasSectionGet = false; hasSectionGet = false;
if (!hasSectionSet) { if (!hasSectionSet) {
continue layer; continue layer;