Skip to content

Commit

Permalink
Merge pull request #519 from /issues/518-dereference-npe
Browse files Browse the repository at this point in the history
Fix #518: Dereference null return value warning
  • Loading branch information
romanstrobl authored Aug 31, 2023
2 parents 9afc6b1 + 93764aa commit 93c1217
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
Expand Down

0 comments on commit 93c1217

Please sign in to comment.