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

Conversation

rpelisse
Copy link

@rpelisse rpelisse commented Aug 8, 2017

Issue: https://issues.jboss.org/browse/JBEAP-11860
Upstream Issue: https://issues.jboss.org/browse/RESTEASY-1684
Upstream PR: #1206

Backporting fix for RESTEASY-1684 to branch 3.0.19.SPX (thus for EAP 7.0.x)

@@ -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))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing ";" ... ;-)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

darn 🤦 !

Let me fix that right away...

@rpelisse
Copy link
Author

rpelisse commented Aug 8, 2017

OK this time it ssems to NOT be related to my changes. @asoldano of course if you feel it might be, let me know and I'll dig deeper.

ronsigal added a commit that referenced this pull request Dec 14, 2017
Adding test for pull request #1240.
@ronsigal ronsigal merged commit f11ecc4 into resteasy:3.0.19.SPx Dec 14, 2017
@ronsigal
Copy link
Collaborator

I'm going to merge this. #1365 has a test for for this change.

ronsigal added a commit that referenced this pull request Dec 14, 2017
* RESTEASY-1684 - Arguments must not be null when sending a null JSON object with ResteasyWebTarget

* [RESTEASY-1684]

Adding test for pull request #1240.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants