felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Offermans (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-1829) Method AbstractDeploymentPackage.getBundle(...) throws NullPointerException
Date Tue, 28 May 2013 10:14:23 GMT

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

Marcel Offermans resolved FELIX-1829.
-------------------------------------

    Resolution: Fixed

Has been fixed.
                
> 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

Mime
View raw message