From bd802353d6d24af5314396f6a311672763e27475 Mon Sep 17 00:00:00 2001 From: Felix Schumacher Date: Wed, 11 Mar 2026 16:58:44 +0100 Subject: [PATCH] Skip checking empty filenames for result collectors On Java 25 the semantic of checking existance for empty filenames has been changed. See https://bugs.openjdk.org/browse/JDK-8024695 The old behaviour was used in JMeter to skip empty filenames in result collectors. This patch should resolve the bug while maintaining backwards compatibility. This should fix #6611. --- .../java/org/apache/jmeter/gui/action/AbstractAction.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/src/main/java/org/apache/jmeter/gui/action/AbstractAction.java b/src/core/src/main/java/org/apache/jmeter/gui/action/AbstractAction.java index 898dc054560..eec6bd108b1 100644 --- a/src/core/src/main/java/org/apache/jmeter/gui/action/AbstractAction.java +++ b/src/core/src/main/java/org/apache/jmeter/gui/action/AbstractAction.java @@ -89,6 +89,10 @@ protected boolean popupCheckExistingFileListener(HashTree tree) { SearchByClass resultListeners = new SearchByClass<>(ResultCollector.class); tree.traverse(resultListeners); for (ResultCollector rc : resultListeners.getSearchResults()) { + if ("".equals(rc.getFilename())) { + log.debug("Skip result collector ({}) as it has empty filename", rc.getName()); + continue; + } File f = new File(rc.getFilename()); if (f.exists()) { switch (actionOnFile) {