[ https://issues.apache.org/jira/browse/KARAF-3630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497703#comment-14497703 ]
Guillaume Nodet commented on KARAF-3630: ---------------------------------------- Fwiw, this does not apply to 4.x > 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)