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 (#1240)
  • Loading branch information
rpelisse authored and ronsigal committed Dec 14, 2017
1 parent 9d97488 commit f11ecc4
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 f11ecc4

Please sign in to comment.