Skip to content

Commit

Permalink
RESTEASY-1684 - Arguments must not be null when sending a null JSON o…
Browse files Browse the repository at this point in the history
…bject with ResteasyWebTarget
  • Loading branch information
rpelisse committed Aug 8, 2017
1 parent 4516bcc commit ff76777
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -32,7 +32,7 @@ public MessageBodyParameterProcessor(MediaType mediaType, Class type, Type gener
@Override
public void process(ClientInvocationBuilder invocation, Object param)
{
invocation.getInvocation().setEntity(Entity.entity(new GenericEntity(param, genericType), mediaType, annotations));
invocation.getInvocation().setEntity(Entity.entity(param == null? null : new GenericEntity<Object>(param, genericType), mediaType, annotations));
}

public void build(ClientRequest request, Object object)
Expand All @@ -50,4 +50,4 @@ public MediaType getMediaType()
return mediaType;
}

}
}

0 comments on commit ff76777

Please sign in to comment.