8000 NPE if reading record without a amzn-ddb-map-desc · Issue #123 · aws/aws-dynamodb-encryption-java · GitHub
[go: up one dir, main page]

Skip to content
NPE if reading record without a amzn-ddb-map-desc #123
Open
@lavaleri

Description

@lavaleri

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0