Browse Source

BETA/STABLE: NPE fix by JIV (requested by UnAfraid).

MELERIX 14 years ago
parent
commit
f4e03a8079
1 changed files with 2 additions and 2 deletions
  1. 2 2
      L2J_Server_BETA/java/com/l2jserver/gameserver/SevenSigns.java

+ 2 - 2
L2J_Server_BETA/java/com/l2jserver/gameserver/SevenSigns.java

@@ -1420,7 +1420,7 @@ public class SevenSigns
 				
 				if (isSealValidationPeriod() || isCompResultsPeriod())
 				{
-					if (!onlinePlayer.isGM() && onlinePlayer.isIn7sDungeon() && !currPlayer.getString("cabal").equals(compWinner))
+					if (!onlinePlayer.isGM() && onlinePlayer.isIn7sDungeon() && (currPlayer == null || !currPlayer.getString("cabal").equals(compWinner)))
 					{
 						onlinePlayer.teleToLocation(MapRegionTable.TeleportWhereType.Town);
 						onlinePlayer.setIsIn7sDungeon(false);
@@ -1429,7 +1429,7 @@ public class SevenSigns
 				}
 				else
 				{
-					if (!onlinePlayer.isGM() && onlinePlayer.isIn7sDungeon() && !currPlayer.getString("cabal").isEmpty())
+					if (!onlinePlayer.isGM() && onlinePlayer.isIn7sDungeon() && (currPlayer == null || !currPlayer.getString("cabal").isEmpty()))
 					{
 						onlinePlayer.teleToLocation(MapRegionTable.TeleportWhereType.Town);
 						onlinePlayer.setIsIn7sDungeon(false);