You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Marcel Offermans (JIRA)" <ji...@apache.org> on 2013/04/24 16:45:16 UTC

[jira] [Updated] (FELIX-1829) Method AbstractDeploymentPackage.getBundle(...) throws NullPointerException

     [ https://issues.apache.org/jira/browse/FELIX-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcel Offermans updated FELIX-1829:
------------------------------------

    Fix Version/s: deploymentadmin-0.9.2

Need to review if this has been fixed for the next release.
                
> Method AbstractDeploymentPackage.getBundle(...) throws NullPointerException
> ---------------------------------------------------------------------------
>
>                 Key: FELIX-1829
>                 URL: https://issues.apache.org/jira/browse/FELIX-1829
>             Project: Felix
>          Issue Type: Bug
>          Components: Deployment Admin
>            Reporter: Pavel Kodl
>            Assignee: Marcel Offermans
>            Priority: Critical
>             Fix For: deploymentadmin-0.9.2
>
>
> 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)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira