Skip to content

AwsSpringHttpProcessingUtils in module aws-serverless-java-container-springboot3 has a NullPointerException #1504

Open
@digithead1011

Description

@digithead1011

Starting at line 127:

	if (v1Request.getMultiValueHeaders() != null) {

			MultiValueMapAdapter headers = new MultiValueMapAdapter(v1Request.getMultiValueHeaders());
			httpRequest.setHeaders(headers);
		}
        populateContentAndContentType(
                v1Request.getBody(),
                v1Request.getMultiValueHeaders().getFirst(HttpHeaders.CONTENT_TYPE),
                v1Request.isBase64Encoded(),
                httpRequest
        );

If v1Request.getMultiValueHeaders() returns null, the lines the first if block is skipped. In the call to populateContentAndContentType, getMultiValueHeaders() is referenced, resulting in a NullPointerException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions