From ed280896280a7af6deedd33006d700e82f07c6ed Mon Sep 17 00:00:00 2001 From: Octavia Togami Date: Sat, 21 Aug 2021 20:27:25 -0700 Subject: [PATCH] Don't crash if fields are null in ChunkDeleter (#1874) Fixes #1873 --- .../java/com/sk89q/worldedit/internal/anvil/ChunkDeleter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/anvil/ChunkDeleter.java b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/anvil/ChunkDeleter.java index a2f81f0de..71f5e5aa5 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/anvil/ChunkDeleter.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/anvil/ChunkDeleter.java @@ -59,7 +59,7 @@ public final class ChunkDeleter { ); private static final Gson chunkDeleterGson = new GsonBuilder() - .registerTypeAdapter(BlockVector2.class, new BlockVector2Adapter()) + .registerTypeAdapter(BlockVector2.class, new BlockVector2Adapter().nullSafe()) .setPrettyPrinting() .create();