[KARAF-2694]NPE when use osgi:uninstall