mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

pgamba
13.17.2010 a823b4534f665b744b990e2f641b6ff28eb35d0d
Fix potential NPE on stopRSHeartBeatMonitoring in unit test and document service 
1 files modified
8 ■■■■ changed files
opends/src/server/org/opends/server/replication/service/ReplicationBroker.java 8 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/service/ReplicationBroker.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2006-2009 Sun Microsystems, Inc.
 *      Copyright 2006-2010 Sun Microsystems, Inc.
 */
package org.opends.server.replication.service;
@@ -1690,7 +1690,7 @@
  /**
   * Stops the same group id poller.
   */
  private void stopSameGroupIdPoller()
  private synchronized void stopSameGroupIdPoller()
  {
    if (sameGroupIdPoller != null)
    {
@@ -1703,7 +1703,7 @@
  /**
   * Stop the heartbeat monitor thread.
   */
  void stopRSHeartBeatMonitoring()
  synchronized void stopRSHeartBeatMonitoring()
  {
    if (heartbeatMonitor != null)
    {
@@ -2573,7 +2573,7 @@
  /**
   * Stops publishing to the RS the current timestamp used in this server.
   */
  public void stopChangeTimeHeartBeatPublishing()
  public synchronized void stopChangeTimeHeartBeatPublishing()
  {
    if (ctHeartbeatPublisherThread != null)
    {