If the bundles are not started that are used to acquire the bundle-context then null is used internally leading to NPE in BundleContextExtension.
If the bundles are not started that are used to acquire the bundle-context then null is used internally leading to NPE in BundleContextExtension.