fix NPE on early shutdown

This commit is contained in:
zzz
2008-12-02 16:28:29 +00:00
parent 3fc698c7d3
commit 8c9ac941bf

View File

@ -47,7 +47,8 @@ public class PeerManagerFacadeImpl implements PeerManagerFacade {
public void shutdown() { public void shutdown() {
_log.info("Shutting down the peer manager"); _log.info("Shutting down the peer manager");
_testJob.stopTesting(); _testJob.stopTesting();
_manager.storeProfiles(); if (_manager != null)
_manager.storeProfiles();
} }
public void restart() { public void restart() {