Details
-
Bug
-
Resolution: Fixed
-
Minor - P4
-
None
-
None
-
None
Description
I think createDecryptionContext, createDataKeyContext, createExplicitEncryptionContext, and createExplicitDecryptionContext throw the wrong exception when mongocrypt_ctx_new fails:
mongocrypt_ctx_t context = mongocrypt_ctx_new(wrapped);
|
if (context == null) {
|
MongoCryptContextImpl.throwExceptionFromStatus(context);
|
}
|
Should be:
mongocrypt_ctx_t context = mongocrypt_ctx_new(wrapped);
|
if (context == null) {
|
throwExceptionFromStatus();
|
}
|