From 3f823c58cce80998a91858f8875f1df81d479a76 Mon Sep 17 00:00:00 2001 From: s809 <11816467-s809@users.noreply.gitlab.com> Date: Fri, 2 Feb 2024 05:48:36 +0000 Subject: [PATCH] Fix exception while saving new data --- .../core/file/fullDatafile/RemoteFullDataFileHandler.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/RemoteFullDataFileHandler.java b/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/RemoteFullDataFileHandler.java index 68385438f..2b53bbe30 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/RemoteFullDataFileHandler.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/file/fullDatafile/RemoteFullDataFileHandler.java @@ -51,7 +51,12 @@ public class RemoteFullDataFileHandler extends GeneratedFullDataFileHandler } pos.forEachChildAtLevel(DhSectionPos.SECTION_MINIMUM_DETAIL_LEVEL, childPos -> { - int checksum = Objects.requireNonNull(this.repo.getChecksumForSection(childPos)); + Integer checksum = this.repo.getChecksumForSection(childPos); + if (checksum == null) + { + return; + } + this.dataRefreshQueue.submitRequest(childPos, this.level::updateDataSourcesWithChunkData, checksum); });