Fix NPE when using deferInitPhase
@@ -55,6 +55,9 @@ public class FastCamelRuntime implements CamelRuntime {
@Override
public void start(Runtime runtimeConfig) throws Exception {
this.runtimeConfig = runtimeConfig;
+ if (buildTimeConfig.deferInitPhase) {
+ doInit();
+ }
doStart();
}
