diff --git a/core/java/src/net/i2p/crypto/eddsa/EdDSAEngine.java b/core/java/src/net/i2p/crypto/eddsa/EdDSAEngine.java
index d39863c38dfb8b66a547648fbd93602a7a4eff8f..c70333b0cab2ea12b84bb3bcdc67dfa7cbd0a7c7 100644
--- a/core/java/src/net/i2p/crypto/eddsa/EdDSAEngine.java
+++ b/core/java/src/net/i2p/crypto/eddsa/EdDSAEngine.java
@@ -426,7 +426,7 @@ public final class EdDSAEngine extends Signature {
     @Override
     protected void engineSetParameter(AlgorithmParameterSpec spec) throws InvalidAlgorithmParameterException {
         if (spec.equals(ONE_SHOT_MODE)) {
-            if (oneShotBytes != null || baos != null && baos.size() > 0)
+            if (oneShotBytes != null || (baos != null && baos.size() > 0))
                 throw new InvalidAlgorithmParameterException("update() already called");
             oneShotMode = true;
         } else {