DataDog / datadog-lambda-java

The Datadog AWS Lambda package for Java
Apache License 2.0
14 stars 14 forks source link

Add a missing null check to KinesisHeaderable #43

Closed Otanikotani closed 3 years ago

Otanikotani commented 3 years ago

What does this PR do?

Adds a missing null check into KinesisHeaderable. This is needed to properly parse records without _datadog attribute

Motivation

We got some NPEs in our logs and figured that is causing the issue.

Testing Guidelines

Added a new unit test

Additional Notes

Types of changes

Checklist

Otanikotani commented 3 years ago

Sorry I missed that null check in the first PR.