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 98fbe39 commit 6c96166Copy full SHA for 6c96166
src/main/java/com/amazonaws/encryptionsdk/model/DecryptionMaterials.java
@@ -13,9 +13,8 @@ public final class DecryptionMaterials {
13
private DecryptionMaterials(Builder b) {
14
dataKey = b.getDataKey();
15
trailingSignatureKey = b.getTrailingSignatureKey();
16
- if (b.getEncryptionContext() != null) {
17
- encryptionContext = b.getEncryptionContext();
18
- } else {
+ encryptionContext = b.getEncryptionContext();
+ if (encryptionContext == null) {
19
encryptionContext = Collections.emptyMap();
20
}
21
0 commit comments