Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-1829

Method AbstractDeploymentPackage.getBundle(...) throws NullPointerException

    XMLWordPrintableJSON

Details

    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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            kodlpav Pavel Kodl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: