karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Work started] (KARAF-3630) NPE in Karaf bundle:update command
Date Thu, 21 May 2015 05:40:59 GMT

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

Work on KARAF-3630 started by Jean-Baptiste Onofré.
---------------------------------------------------
> NPE in Karaf bundle:update command
> ----------------------------------
>
>                 Key: KARAF-3630
>                 URL: https://issues.apache.org/jira/browse/KARAF-3630
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-osgi
>    Affects Versions: 3.0.3
>            Reporter: Dmitry Konstantinov
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 3.0.4
>
>
> If a user passes an invalid URL (for example a file path without file: scheme) the following
exception is thrown:
> {noformat}
> Exception caught while executing command
> java.lang.NullPointerException
>  at org.apache.karaf.bundle.command.Update.doExecute(Update.java:39)
>  at org.apache.karaf.bundle.command.BundleCommand.doExecute(BundleCommand.java:49)
>  at org.apache.karaf.bundle.command.BundleCommandWithConfirmation.doExecute(BundleCommandWithConfirmation.java:34)
>  at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
>  at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
>  at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
> {noformat}
> To provide a correct error the following class: org.apache.karaf.bundle.command.Update
> should contain the null checking in the finally block:
> {code}
> if (is != null) {
>     is.close();
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message