diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/profile/stats/StatsFragment.java b/app/src/main/java/gr/thmmy/mthmmy/activities/profile/stats/StatsFragment.java index 2fce1ea9..aee0401e 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/profile/stats/StatsFragment.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/profile/stats/StatsFragment.java @@ -358,7 +358,10 @@ public class StatsFragment extends Fragment { @Override public String getFormattedValue(float value, AxisBase axis) { - return mValues.get((int) value); + if (((int) value) < mValues.size()) + return mValues.get((int) value); + else + return "0"; } } }