Skip to content

Commit

Permalink
GEODE-2497: surprise members are never timed out during startup
Browse files Browse the repository at this point in the history
fixed NPE caused by previous fix
  • Loading branch information
bschuchardt committed Feb 24, 2017
1 parent 86550db commit 42f733f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -977,11 +977,10 @@ public void run() {

/** starts periodic task to perform cleanup chores such as expire surprise members */
private void startCleanupTimer() {
if (this.dcReceiver == null) {
// junit tests don't provide a direct-channel receiver
if (this.listener == null || listener.getDM() == null) {
return;
}
DistributedSystem ds = this.dcReceiver.getDM().getSystem();
DistributedSystem ds = this.listener.getDM().getSystem();
this.cleanupTimer = new SystemTimer(ds, true);
SystemTimer.SystemTimerTask st = new SystemTimer.SystemTimerTask() {
@Override
Expand Down

0 comments on commit 42f733f

Please sign in to comment.