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

andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git


The following commit(s) were added to refs/heads/main by this push:
     new ad24b37  JENA-2102: Fix init check
ad24b37 is described below

commit ad24b3777c3515fbaabe81e8ec2ad9d95f012e4c
Author: Andy Seaborne <[email protected]>
AuthorDate: Wed May 5 09:06:06 2021 +0100

    JENA-2102: Fix init check
---
 jena-cmds/src/main/java/org/apache/jena/cmd/Cmds.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jena-cmds/src/main/java/org/apache/jena/cmd/Cmds.java 
b/jena-cmds/src/main/java/org/apache/jena/cmd/Cmds.java
index 5e206c1..04c0818 100644
--- a/jena-cmds/src/main/java/org/apache/jena/cmd/Cmds.java
+++ b/jena-cmds/src/main/java/org/apache/jena/cmd/Cmds.java
@@ -38,7 +38,7 @@ public class Cmds {
     static void init() {
         // Initialization should be minimal, just enough to allow modules to 
register commands.
         // We may be inside some other place where JenaSystem.init() was 
called.
-        if ( cmds != null )
+        if ( cmds == null )
             cmds = new HashMap<>();
     }
 

Reply via email to