From 565ba520be3757c3642792fe6df4b727783f9d21 Mon Sep 17 00:00:00 2001 From: Andrea Aime Date: Mon, 13 May 2024 15:38:54 +0200 Subject: [PATCH] Whoops, forgot to backport a change from main, during parameter filter management updates --- .../geowebcache/storage/blobstore/file/FileBlobStore.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/geowebcache/core/src/main/java/org/geowebcache/storage/blobstore/file/FileBlobStore.java b/geowebcache/core/src/main/java/org/geowebcache/storage/blobstore/file/FileBlobStore.java index 39f3b18d5..66002af40 100644 --- a/geowebcache/core/src/main/java/org/geowebcache/storage/blobstore/file/FileBlobStore.java +++ b/geowebcache/core/src/main/java/org/geowebcache/storage/blobstore/file/FileBlobStore.java @@ -14,7 +14,6 @@ */ package org.geowebcache.storage.blobstore.file; -import static java.util.Objects.isNull; import static org.geowebcache.storage.blobstore.file.FilePathUtils.filteredGridSetId; import static org.geowebcache.storage.blobstore.file.FilePathUtils.filteredLayerName; import static org.geowebcache.util.FileUtils.listFilesNullSafe; @@ -526,10 +525,8 @@ public void put(TileObject stObj) throws StorageException { private void putParametersMetadata( String layerName, String parametersId, Map parameters) throws StorageException { - assert (isNull(parametersId) == isNull(parameters)); - if (isNull(parametersId)) { - return; - } + // check if we even need to use any IO + if (parametersId == null || parameters == null || parameters.isEmpty()) return; File parametersFile = parametersFile(layerName, parametersId); if (parametersFile.exists()) return;