Fixed NPE in BungeeCord on cracked login for existing players (#22)

This commit is contained in:
games647 committed 2016-06-10 08:57:08 +02:00
1 parent be89eec23b
commit 7733135ce4
4 files changed
+9

No files matched your search

@@ -47,6 +47,8 @@ public class AsyncPremiumCheck implements Runnable {
}
} else if (profile.isPremium()) {
requestPremiumLogin(connection, profile, username, true);
} else {
plugin.getSession().put(connection, new LoginSession(username, false, profile));
}
} catch (Exception ex) {
plugin.getLogger().log(Level.SEVERE, "Failed to check premium state", ex);