diff --git a/Mage.Client/src/main/java/mage/client/cards/ManaPieChart.java b/Mage.Client/src/main/java/mage/client/cards/ManaPieChart.java index a8d447e700..cf33d0e1e7 100644 --- a/Mage.Client/src/main/java/mage/client/cards/ManaPieChart.java +++ b/Mage.Client/src/main/java/mage/client/cards/ManaPieChart.java @@ -67,6 +67,10 @@ public class ManaPieChart extends JComponent { for (int i = 0; i < slices.length; i++) { total += slices[i].value; } + + if (total == 0.0D) { + return; //there are no slices or no slices with a value > 0, stop here + } double curValue = 0.0D; int startAngle = 0;