Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
Description
Because in this method on row 115 is:
if (bundles[i].getSymbolicName().equals(symbolicName)) {
but should be something like:
String sn = bundles[i].getSymbolicName();
if (sn != null && sn.equals(symbolicName)) {
It happends by installing a deployment package, stack trace is:
java.lang.NullPointerException
at org.apache.felix.deploymentadmin.AbstractDeploymentPackage.getBundle(AbstractDeploymentPackage.java:115)
at org.apache.felix.deploymentadmin.spi.UpdateCommand.execute(UpdateCommand.java:70)
at org.apache.felix.deploymentadmin.spi.DeploymentSessionImpl.call(DeploymentSessionImpl.java:74)
at org.apache.felix.deploymentadmin.DeploymentAdminImpl.installDeploymentPackage(DeploymentAdminImpl.java:215)