Details
Description
when use bin/client shutdown we get NPE in log
13:25:41,548 | INFO | pool-16-thread-2 | ShellCommandFactory | 49 - org.apache.karaf.shell.ssh - 2.3.0| Exception caught while executing command
java.lang.NullPointerException
at org.apache.karaf.shell.osgi.Shutdown.doExecute(Shutdown.java:83)
at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
and get
Error executing command: java.lang.NullPointerException
from client
Too avoid the NPE, we should return some meaningful prompt message