Author: mircea.markus
Date: 2008-08-21 10:20:17 -0400 (Thu, 21 Aug 2008)
New Revision: 6590
Modified:
core/trunk/src/main/java/org/jboss/cache/jmx/PlatformMBeanServerRegistration.java
Log:
guarded against several @stop methods
Modified:
core/trunk/src/main/java/org/jboss/cache/jmx/PlatformMBeanServerRegistration.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/jmx/PlatformMBeanServerRegistration.java 2008-08-21
14:05:11 UTC (rev 6589)
+++
core/trunk/src/main/java/org/jboss/cache/jmx/PlatformMBeanServerRegistration.java 2008-08-21
14:20:17 UTC (rev 6590)
@@ -77,6 +77,9 @@
@Stop
public void unregisterMBeans()
{
+ //this method might get called several times.
+ // After the first call the cache will become null, so we guard this
+ if (cache == null) return;
Configuration config = cache.getConfiguration();
if (config.getExposeManagementStatistics())
{
Show replies by date