From 4abf818cb673f489617dc8513507018f0a3a4534 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Sun, 12 Aug 2018 12:16:54 +0300 Subject: [PATCH] Fixed possible Arithmetic Exception --- .../plan/data/store/mutators/health/AbstractHealthInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/data/store/mutators/health/AbstractHealthInfo.java b/Plan/src/main/java/com/djrapitops/plan/data/store/mutators/health/AbstractHealthInfo.java index b3563ef11..f519456ad 100644 --- a/Plan/src/main/java/com/djrapitops/plan/data/store/mutators/health/AbstractHealthInfo.java +++ b/Plan/src/main/java/com/djrapitops/plan/data/store/mutators/health/AbstractHealthInfo.java @@ -63,7 +63,7 @@ public abstract class AbstractHealthInfo { regularRemainCompareSet.removeAll(veryActiveNow); int notRegularAnymore = regularRemainCompareSet.size(); int remain = activeFWAGNum - notRegularAnymore; - double percRemain = remain * 100.0 / activeFWAGNum; + double percRemain = activeFWAGNum != 0 ? remain * 100.0 / activeFWAGNum : 100.0; int newActive = getNewActive(veryActiveNow, activeNow, regularNow, veryActiveFWAG, activeFWAG, regularFWAG);