Hi That was a Javadoc typo as CamelContext.removeEndpoints() would never return null but just an empty Collection if no matching endpoint could be found. So in your case checking it aganist null is obsolete.
I did correct it right before on the trunk. Babak -- View this message in context: http://camel.465427.n5.nabble.com/Problem-Removing-Endpoints-tp5455029p5455330.html Sent from the Camel - Users mailing list archive at Nabble.com.