serverless-java-container
serverless-java-container copied to clipboard
Fixed NullPointerException identified in bug 1504
This PR fixes issue 1504.
Issue #: 1504
Description of changes: AwsSpringHttpProcessingUtils has a NPE when the request has a null value for the multi-value headers. This PR checks for null before dereferencing the multi-value headers.
By submitting this pull request
- [ X ] I confirm that my contribution is made under the terms of the Apache 2.0 license.
- [ X ] I confirm that I've made a best effort attempt to update all relevant documentation.
For those who are wondering, API Gateway does not seem to pass multi-value headers when testing through the AWS console, which is when this bug is observed.