Allow shutdown() to NOOP if we were never init()ed.

This commit is contained in:
Michael Bayne
2009-07-04 18:39:02 +00:00
parent b8696e0060
commit 858bf4ab1c
@@ -184,8 +184,10 @@ public class PersistenceContext
} catch (Throwable t) { } catch (Throwable t) {
log.warning("Failure shutting down Depot cache.", t); log.warning("Failure shutting down Depot cache.", t);
} }
if (_conprov != null) {
_conprov.shutdown(); _conprov.shutdown();
} }
}
/** /**
* Returns a snapshot of our current runtime statistics. * Returns a snapshot of our current runtime statistics.