This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
The following commit(s) were added to refs/heads/master by this push:
new 663866ace Harden AbstractProviderTestSuite tear down.
663866ace is described below
commit 663866ace8b28f75712ddea3997b51fc3007049c
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jun 6 10:05:49 2026 -0400
Harden AbstractProviderTestSuite tear down.
---
.../test/java/org/apache/commons/vfs2/AbstractProviderTestSuite.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/AbstractProviderTestSuite.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/AbstractProviderTestSuite.java
index f62c7dbdc..5160e1715 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/AbstractProviderTestSuite.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/AbstractProviderTestSuite.java
@@ -120,9 +120,8 @@ public abstract class AbstractProviderTestSuite {
* Asserts that the temp dir is empty or gone.
*/
private void checkTempDir(final String assertMsg) {
- if (tempDir.exists()) {
- assertTrue(tempDir.isDirectory() &&
ArrayUtils.isEmpty(tempDir.list()),
- assertMsg + " (" + tempDir.getAbsolutePath() + ")");
+ if (tempDir != null && tempDir.exists()) {
+ assertTrue(tempDir.isDirectory() &&
ArrayUtils.isEmpty(tempDir.list()), assertMsg + " (" +
tempDir.getAbsolutePath() + ")");
}
}