diff --git a/game-app/game-headed/src/main/java/games/strategy/triplea/ui/PurchasePanel.java b/game-app/game-headed/src/main/java/games/strategy/triplea/ui/PurchasePanel.java index cdc6ab451b7..f010371ec38 100644 --- a/game-app/game-headed/src/main/java/games/strategy/triplea/ui/PurchasePanel.java +++ b/game-app/game-headed/src/main/java/games/strategy/triplea/ui/PurchasePanel.java @@ -57,7 +57,12 @@ public void actionPerformed(final ActionEvent e) { final PurchaseDelegate purchaseDelegate = data.getPurchaseDelegate(); // Restore pending production that was loaded from the save game. - purchase = purchaseDelegate.getPendingProductionRules(); + if (purchaseDelegate.getPendingProductionRules() == null) { + purchase = new IntegerMap<>(); + } else { + purchase = purchaseDelegate.getPendingProductionRules(); + } + purchase = TabbedProductionPanel.getProduction( player,