Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
Assuming we have a simple route like:
from("undertow:http://localhost:{{port}}/incompatibleData") .transform().constant(Collections.singletonMap("key", "val"));
This code will cause an NPE on UndertowConsumer because the body cannot be converted to a ByteBuffer [1], instead of an NPE we should use mandatoryConvertTo so the exception is more clear.
Attachments
Issue Links
- links to