From 61a93a54a9b394601e9af404b98b65fd407e5fb1 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 14 Aug 2013 22:14:32 +1000 Subject: [PATCH] ammar2 missed a spot --- proxy/src/main/java/net/md_5/bungee/BungeeCord.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java index 2d75c6582..533669e1f 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java @@ -259,7 +259,10 @@ public class BungeeCord extends ProxyServer @Override public void run() { - getReconnectHandler().save(); + if ( getReconnectHandler() != null ) + { + getReconnectHandler().save(); + } } }, 0, TimeUnit.MINUTES.toMillis( 5 ) ); metricsThread.scheduleAtFixedRate( new Metrics(), 0, TimeUnit.MINUTES.toMillis( Metrics.PING_INTERVAL ) );