Skip to content

v2 Transfer Manager preview throws NullPointerException #3394

Closed
@danbills

Description

@danbills

Describe the bug

When downloading a file, we are seeing NullPointerExceptions thrown:a

2022-08-30 18:25:53.781	Exception in thread "Thread-2" java.lang.NullPointerException
2022-08-30 18:25:53.781		at java.nio.ByteBuffer.wrap(ByteBuffer.java:396)
2022-08-30 18:25:53.781		at software.amazon.awssdk.crt.s3.S3MetaRequestResponseHandlerNativeAdapter.onResponseBody(S3MetaRequestResponseHandlerNativeAdapter.java:15)

Expected Behavior

We did not expect Null Pointer Exceptions.

Current Behavior

Downloading a file throws an NPE

Reproduction Steps

Unable to consistently reproduce. Seeing it on larger files being downloaded, like ~ 2 GB.

Possible Solution

S3 response body may be empty?

Additional Information/Context

No response

AWS Java SDK version used

2.17.264-PREVIEW

JDK version used

8

Operating System and version

Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions