This is an automated email from the ASF dual-hosted git repository.

ggregory 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 7dab799  Set `instance` to `null` after closing it (#163)
7dab799 is described below

commit 7dab799fdc8626e732dfe9cfcade52324e671ba0
Author: Boris Petrov <[email protected]>
AuthorDate: Wed Mar 10 20:14:28 2021 +0200

    Set `instance` to `null` after closing it (#163)
---
 commons-vfs2/src/main/java/org/apache/commons/vfs2/VFS.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/VFS.java 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/VFS.java
index 43250aa..9769bb3 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/VFS.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/VFS.java
@@ -40,6 +40,7 @@ public final class VFS {
     public static synchronized void close() {
         if (instance != null) {
             instance.close();
+            instance = null;
         }
     }
 

Reply via email to