Skip to content

Commit 6c96166

Browse files
Update src/main/java/com/amazonaws/encryptionsdk/model/DecryptionMaterials.java
Co-authored-by: seebees <[email protected]>
1 parent 98fbe39 commit 6c96166

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

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

0 commit comments

Comments
 (0)