Like exception because your main service is not set for some reason. Better return asap here (see many examples in symfony bundles)