Commits vergleichen

...

1 Commits

Autor SHA1 Nachricht Datum
dordsor21
f60aa0b418 Add null check to Heightmap processor "just in case"
Fixes #1592
2022-02-20 17:22:33 +01:00

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;