Fixed NPE on /party

This commit is contained in:
bm01
2012-05-04 11:04:05 +02:00
parent 7ad9b8ff3e
commit 354ed9ede0
2 changed files with 5 additions and 3 deletions

View File

@ -152,9 +152,10 @@ public class Party {
if (player != null) {
for (String name : profiles.keySet()) {
Player p = profiles.get(name).getPlayer();
if (inSameParty(p, player)) {
players.add(p);
Player otherPlayer = profiles.get(name).getPlayer();
if (otherPlayer != null && inSameParty(otherPlayer, player)) {
players.add(otherPlayer);
}
}
}