serverless-java-container icon indicating copy to clipboard operation
serverless-java-container copied to clipboard

Fixed NullPointerException identified in bug 1504

Open digithead1011 opened this issue 6 months ago • 1 comments

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.

digithead1011 avatar Jul 01 '25 16:07 digithead1011

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.

digithead1011 avatar Jul 21 '25 15:07 digithead1011