Fix an NPE reported in ticket-38.

This commit is contained in:
Kristian S. Stangeland 2013-02-09 13:19:36 +01:00
parent bc1955bff3
commit dd3cd6c768

View File

@ -427,7 +427,7 @@ public class SpigotPacketInjector implements SpigotPacketListener {
void uninjectPlayer(Player player) {
final NetworkObjectInjector injector = getInjector(player);
if (player != null) {
if (player != null && injector != null) {
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
@Override
public void run() {