Skip to content

NPE on requests with empty body #462

Closed

Description

@SergiiTrybushnyi

Hi there!
I've come across #313 PR where issue was in response with empty body.
I have the same issue, but with Request.
We have POST requests with empty body and when I try to execute it, i receive NPE on line 47 (entity.writeTo(os) in AllureHttpClientRequest.class
I set "null" to body while building request. After I changed it to empty string - everything works fine.
So, as I understand, NPE is thrown because body content type is not defined and it comes as "null".

Is it a bug or expected behaviour?

Activity

  1. SergiiTrybushnyi commented on Jul 12, 2020

    @SergiiTrybushnyi
    Author

    Fixed in 2.13.5 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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