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:
Hiram R. Chirino 2006-03-23 07:22:21 +00:00
parent 4ae3b9b2ba
commit 6412d6526a

View File

@ -37,8 +37,10 @@ public class ServiceStopper {
*/
public void stop(Service service) {
try {
if( service!=null ) {
service.stop();
}
}
catch (Exception e) {
onException(service, e);
}