Skip to content

Commit 5008c0d

Browse files
fix
1 parent 51db28e commit 5008c0d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/amazonaws/encryptionsdk/model/DecryptionMaterials.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ public final class DecryptionMaterials {
1313
private DecryptionMaterials(Builder b) {
1414
dataKey = b.getDataKey();
1515
trailingSignatureKey = b.getTrailingSignatureKey();
16-
encryptionContext = b.getEncryptionContext();
17-
if (encryptionContext == null) {
16+
if (b.getEncryptionContext() != null) {
17+
encryptionContext = b.getEncryptionContext();
18+
} else {
1819
encryptionContext = Collections.emptyMap();
1920
}
2021
}

0 commit comments

Comments
 (0)