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
1 changed files with 3 additions and 1 deletions

View File

@ -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);