CAMEL-7589: fix NPE