From c8fa9a146e3add4f81f04c2846713dc3c7d43789 Mon Sep 17 00:00:00 2001 From: Xephi Date: Fri, 8 Jan 2016 19:26:26 +0100 Subject: [PATCH] reduce check --- .../java/fr/xephi/authme/process/quit/AsynchronousQuit.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/xephi/authme/process/quit/AsynchronousQuit.java b/src/main/java/fr/xephi/authme/process/quit/AsynchronousQuit.java index 2a3a5d3e0..80dd49b99 100644 --- a/src/main/java/fr/xephi/authme/process/quit/AsynchronousQuit.java +++ b/src/main/java/fr/xephi/authme/process/quit/AsynchronousQuit.java @@ -61,8 +61,8 @@ public class AsynchronousQuit { database.updateSession(auth); } - if (LimboCache.getInstance().hasLimboPlayer(name)) { - LimboPlayer limbo = LimboCache.getInstance().getLimboPlayer(name); + LimboPlayer limbo = LimboCache.getInstance().getLimboPlayer(name); + if (limbo != null) { if (limbo.getGroup() != null && !limbo.getGroup().isEmpty()) Utils.addNormal(player, limbo.getGroup()); needToChange = true;