Details
Description
Hello,
the CxfProducer.doStart() retrieves a Conduit.
If this Conduit is null, should we still throw a NullPointerException or, should we check nullity before condition?
Conduit conduit = client.getConduit(); if (conduit.getClass().getName().endsWith("JMSConduit")) { ... }
https://github.com/apache/camel/blob/camel-2.21.2/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java#L87
https://github.com/apache/camel/blob/camel-2.23.1/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java#L87
https://github.com/apache/camel/blob/camel-2.24.1/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java#L87
Thanks for your point of view.
Attachments
Issue Links
- links to