Processors for every HTTP method not so optional. #4

Open
poznachowski opened this Issue Jul 15, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@poznachowski

Hello,
According to the spec:
http://mulesoft.github.io/mule-module-rest-router/mule/rest-router-config.html
each HTTP method processor is optional.

"UnsupportedHttpVerbException - Thrown when the HTTP method is not available or when the processor to be executed is null."

Unfortunately, if I don't provide ie. PUT method in Mule config and then invoke the flow using PUT, I'll get NPE:
Root Exception stack trace:
java.lang.NullPointerException
at org.mule.modules.rest.process.NestedProcessorChain.processWithExtraProperties(NestedProcessorChain.java:96)
at org.mule.modules.rest.RestRouterModule.router(RestRouterModule.java:124)
at org.mule.modules.rest.processors.RouterMessageProcessor$1.process(RouterMessageProcessor.java:297)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment