Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESTEASY-1684 - Arguments must not be null when sending a null JSON object with ResteasyWebTarget #1240

Merged
merged 1 commit into from Dec 14, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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;
}

}
}