CAMEL-7589: fix NPE
Merge branch 'CAMEL-7589' of https://github.com/wuwen5/camel