You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2015/05/21 07:40:59 UTC
[jira] [Work started] (KARAF-3630) NPE in Karaf bundle:update
command
[ 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)