mirror of https://github.com/apache/activemq.git
Avoid NPE
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@388079 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4ae3b9b2ba
commit
6412d6526a
|
@ -37,7 +37,9 @@ public class ServiceStopper {
|
|||
*/
|
||||
public void stop(Service service) {
|
||||
try {
|
||||
service.stop();
|
||||
if( service!=null ) {
|
||||
service.stop();
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
onException(service, e);
|
||||
|
|
Loading…
Reference in New Issue