[ 
https://issues.apache.org/jira/browse/KARAF-5481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16250974#comment-16250974
 ] 

Jean-Baptiste Onofré commented on KARAF-5481:
---------------------------------------------

I think we have to add a test to ensure {{config}} is not null as it could be 
possible especially when using PID instead of shutdown command.

> NullPointer when invoking Karaf.stop()
> --------------------------------------
>
>                 Key: KARAF-5481
>                 URL: https://issues.apache.org/jira/browse/KARAF-5481
>             Project: Karaf
>          Issue Type: Bug
>            Reporter: Fabian Lange
>            Assignee: Jean-Baptiste Onofré
>
> customer sees this when they run a package upgrade of our karaf distribution
> ```Nov 12 04:15:54 karaf[21250]: Exception in thread "main" 
> java.lang.NullPointerException
> Nov 12 04:15:54 karaf[21250]: at 
> org.apache.karaf.main.Stop.main(Stop.java:60)```
> https://github.com/apache/karaf/blob/master/main/src/main/java/org/apache/karaf/main/Stop.java#L60
> We have the feeling this is kind of a race condition between sending the stop 
> command and deleting the file which contains the stop command.
> whats your thoughts? shouldn'T we at least ensure that 
> `config.shutdownCommand` is non null?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to