Don't save NULL injectors in a ConcurrentHashMap.

This commit is contained in:
Kristian S. Stangeland 2012-10-21 12:11:59 +02:00
parent 331fc94190
commit 43c0b5d8f1

View File

@ -340,8 +340,10 @@ public class PlayerInjectionHandler {
if (permanentHook != getPlayerHook(phase)) if (permanentHook != getPlayerHook(phase))
setPlayerHook(phase, tempHook); setPlayerHook(phase, tempHook);
// Save last injector // Save injector
playerInjection.put(player, injector); if (injector != null) {
playerInjection.put(player, injector);
}
} }
return injector; return injector;