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

Peter Doornbosch closed FELIX-1057.
-----------------------------------


Yeah, i noticed the concurrency issues too, but didn't want to be a nag ;-).

Thanks for fixing this. Keep up the good work!

> stopping bundle causes NPE
> --------------------------
>
>                 Key: FELIX-1057
>                 URL: https://issues.apache.org/jira/browse/FELIX-1057
>             Project: Felix
>          Issue Type: Bug
>          Components: Remote Shell
>    Affects Versions:  shell.remote-1.0.4
>            Reporter: Peter Doornbosch
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: shell.remote-1.0.5
>
>
> Stopping the remote shell bundle itself remotely, causes a NPE:
> Exception in thread "telnetconsole.shell remote=/127.0.0.1:56512" 
> java.lang.NullPointerException
>       at 
> org.apache.felix.shell.remote.TerminalPrintStream.print(TerminalPrintStream.java:52)
> I admit that stopping the bundle itself over the remote connection may seem 
> like a silly use case, but under circumstances it is necessary (to release 
> the socket).
> The NPE is causes by Activator.getServices() returning null. The fix is 
> trivial:
> ServiceMediator services = Activator.getServices();
> if (services != null)
>    services.error(...)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to