-
Type:
Bug
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: camel-undertow
-
Labels:None
-
Estimated Complexity:Unknown
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.
- links to