From 1ec07dcae7a0bc72745902af724534568fdefd6c Mon Sep 17 00:00:00 2001 From: Sloth Date: Mon, 4 Aug 2014 20:41:08 +0000 Subject: [PATCH] - Prevent a possible NPE. --- .../java/forge/game/ability/effects/RestartGameEffect.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/forge-game/src/main/java/forge/game/ability/effects/RestartGameEffect.java b/forge-game/src/main/java/forge/game/ability/effects/RestartGameEffect.java index 056ea925b62..d581a79512c 100644 --- a/forge-game/src/main/java/forge/game/ability/effects/RestartGameEffect.java +++ b/forge-game/src/main/java/forge/game/ability/effects/RestartGameEffect.java @@ -42,9 +42,8 @@ public class RestartGameEffect extends SpellAbilityEffect { if (leaveZone != null) { filteredCards = CardLists.filter(p.getCardsIn(leaveZone), CardPredicates.restriction(leaveRestriction.split(","), p, sa.getHostCard())); + newLibrary.addAll(filteredCards); } - - newLibrary.addAll(filteredCards); playerLibraries.put(p, newLibrary); }