We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51db28e commit 5008c0dCopy full SHA for 5008c0d
src/main/java/com/amazonaws/encryptionsdk/model/DecryptionMaterials.java
@@ -13,8 +13,9 @@ public final class DecryptionMaterials {
13
private DecryptionMaterials(Builder b) {
14
dataKey = b.getDataKey();
15
trailingSignatureKey = b.getTrailingSignatureKey();
16
- encryptionContext = b.getEncryptionContext();
17
- if (encryptionContext == null) {
+ if (b.getEncryptionContext() != null) {
+ encryptionContext = b.getEncryptionContext();
18
+ } else {
19
encryptionContext = Collections.emptyMap();
20
}
21
0 commit comments