targetParty could have been null going into the PartyChangeEvent.

This commit is contained in:
GJ 2013-02-05 09:59:03 -05:00
parent 2764368089
commit 3550c25b7d

View File

@ -214,7 +214,7 @@ public class PartyCommand implements CommandExecutor {
Party targetParty = mcMMOTarget.getParty();
// Check to see if the party exists, and if it does, can the player join it?
if (targetParty != null && !PartyManager.checkJoinability(player, targetParty, null)) {
if (targetParty == null || !PartyManager.checkJoinability(player, targetParty, null)) {
return true; // End before any event is fired.
}