From a1bd7343eb946c8b02e165db5e916f2a3b540d27 Mon Sep 17 00:00:00 2001 From: "marcin.sciesinski" Date: Fri, 10 Nov 2017 12:45:39 -0800 Subject: [PATCH] If deck doesn't have ring - do not attempt to validate it. --- .../com/gempukku/lotro/game/formats/DefaultLotroFormat.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/formats/DefaultLotroFormat.java b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/formats/DefaultLotroFormat.java index e8c482a65..a10173d32 100644 --- a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/formats/DefaultLotroFormat.java +++ b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/formats/DefaultLotroFormat.java @@ -258,7 +258,8 @@ public class DefaultLotroFormat implements LotroFormat { Map cardCountByName = new HashMap(); Map cardCountByBaseBlueprintId = new HashMap(); - processCardCounts(deck.getRing(), cardCountByName, cardCountByBaseBlueprintId); + if (deck.getRing() != null) + processCardCounts(deck.getRing(), cardCountByName, cardCountByBaseBlueprintId); processCardCounts(deck.getRingBearer(), cardCountByName, cardCountByBaseBlueprintId); for (String blueprintId : deck.getAdventureCards()) processCardCounts(blueprintId, cardCountByName, cardCountByBaseBlueprintId);