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

HeaderParam don't work with null headers #595

Closed
garcia-jj opened this issue Jun 12, 2014 · 1 comment · Fixed by #631
Closed

HeaderParam don't work with null headers #595

garcia-jj opened this issue Jun 12, 2014 · 1 comment · Fixed by #631
Assignees
Labels

Comments

@garcia-jj
Copy link
Member

public void find(State state, @HeaderParam("ETag") String etag)

If ETag header is null, an exception happens.


20:22:11,223 ERROR [io.undertow.request] (default task-12) UT005023: Exception handling request to /cities/RS.json: java.lang.IllegalArgumentException: Parameter value cannot be null
    at br.com.caelum.iogi.parameters.Parameter.notNull(Parameter.java:24) [iogi-1.0.0.jar:]
    at br.com.caelum.iogi.parameters.Parameter.<init>(Parameter.java:14) [iogi-1.0.0.jar:]
    at br.com.caelum.vraptor.http.iogi.IogiParametersProvider.parseParameters(IogiParametersProvider.java:117) [vraptor-4.0.0.Final.jar:]
    at br.com.caelum.vraptor.http.iogi.IogiParametersProvider.getParametersFor(IogiParametersProvider.java:69) [vraptor-4.0.0.Final.jar:]
    at br.com.caelum.vraptor.http.iogi.IogiParametersProvider$Proxy$_$$_WeldClientProxy.getParametersFor(Unknown Source) [vraptor-4.0.0.Final.jar:]
    at br.com.caelum.vraptor.observer.ParametersInstantiator.getParametersForCurrentMethod(ParametersInstantiator.java:135) [vraptor-4.0.0.Final.jar:]
    at br.com.caelum.vraptor.observer.ParametersInstantiator.instantiate(ParametersInstantiator.java:89) [vraptor-4.0.0.Final.jar:]
@Turini Turini added the bug label Jun 17, 2014
@Turini Turini self-assigned this Jun 24, 2014
@Turini
Copy link
Member

Turini commented Jun 24, 2014

doing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants