diff --git a/powerauth-java-crypto/src/main/java/io/getlime/security/powerauth/crypto/lib/encryptor/ecies/ClientEciesEncryptor.java b/powerauth-java-crypto/src/main/java/io/getlime/security/powerauth/crypto/lib/encryptor/ecies/ClientEciesEncryptor.java index a7eb39543..86cd1792e 100644 --- a/powerauth-java-crypto/src/main/java/io/getlime/security/powerauth/crypto/lib/encryptor/ecies/ClientEciesEncryptor.java +++ b/powerauth-java-crypto/src/main/java/io/getlime/security/powerauth/crypto/lib/encryptor/ecies/ClientEciesEncryptor.java @@ -159,7 +159,7 @@ public EncryptedRequest encryptRequest(byte[] data) throws EncryptorException { base64Encoder.encodeToString(eciesCryptogram.getEphemeralPublicKey()), base64Encoder.encodeToString(eciesCryptogram.getEncryptedData()), base64Encoder.encodeToString(eciesCryptogram.getMac()), - validator.isUseNonceForRequest() ? base64Encoder.encodeToString(requestNonce) : null, + validator.isUseNonceForRequest() && requestNonce != null ? base64Encoder.encodeToString(requestNonce) : null, requestTimestamp ); }