aws / aws/aws-dynamodb-encryption-java
NPE if reading record without a amzn-ddb-map-desc
Open
bug
- Dominant language
- Java
- Stars
- 141
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
This line throws a null pointer exception if you attempt to decrypt a record where the amzn-ddb-map-desc attribute has been manually removed: https://github.com/aws/aws-dynamodb-encryption-java/blob/master/sdk1/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/encryption/providers/DirectKmsMaterialProvider.java#L126
We should check this earlier and throw a more useful exception.
Contributor guide
Assessment
This issue has not been assessed yet.