Fix potential NPE, remove uneeded imports, static access for static vars

This commit is contained in:
Matt Baxter committed 2012-07-17 21:21:51 -04:00
1 parent 30ac883120
commit 19af0045f9
2 files changed
+9 -11

No files matched your search

@@ -69,11 +69,13 @@ public class PlayerManager
}
else
{
final String name = player.getName();
// Why, Why, Whyyyyy!
if (player == null)
return false;
final String name = player.getName();
if (level.get(name) == null || level.get(name) == 0)
{