caelum/vraptor — pull request #618 by nykolaslima (2014-10-14 01:50:01+00:00)
Title: allowing controllers to receive optional parameters

Currently we can't create a controller method that receives an optional parameter.

```
@Post("/doSomething")
@Consumes("application/json")
public void doSomething(Car car) {
}
```

If we call `/doSomething` with empty body, this will throw a `NullPointerException`.
```
POST /doSomething (works great!)
{
car: {
....
}
}
```
```
POST /doSomething (throws a NullPointerException)
<>
```