From 45c6c20ccd865ad46832c210ff8ecac77d31fe8d Mon Sep 17 00:00:00 2001 From: T00thpick1 Date: Wed, 22 May 2013 21:20:35 -0400 Subject: [PATCH] Null parties! Hurray! --- src/main/java/com/gmail/nossr50/party/PartyManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/party/PartyManager.java b/src/main/java/com/gmail/nossr50/party/PartyManager.java index cc2cee08b..192bc9eaf 100644 --- a/src/main/java/com/gmail/nossr50/party/PartyManager.java +++ b/src/main/java/com/gmail/nossr50/party/PartyManager.java @@ -64,6 +64,10 @@ public final class PartyManager { return false; } + if (firstMcMMOPlayer.getParty() == null || secondMcMMOPlayer.getParty() == null) { + return false; + } + return firstMcMMOPlayer.getParty().equals(secondMcMMOPlayer.getParty()); }