MethodReturnValueHandler implementations should support null return values from endpoints [SWS-867] #941
Here is an example Endpoint...
In the case where we the ENDPOINT_REFERENCE doesn't match, we don't want to send a response at all, and so the method returns 'null'. However, in all but the AbstractPayloadSourceMethodProcessor implementations, either a NullPointerException or IllegalArgumentException (from the Assert.notNull) will be thrown.
I believe handling null return values by suppressing the sending of a response is the most consistent approach, given that this is what Spring MVC does.
Referenced from: commits 06ff649
The text was updated successfully, but these errors were encountered: