Skip to content

Commit bc2c4e2

Browse files
committed
Fixed PhilJay#868
1 parent 5d19d4b commit bc2c4e2

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎MPChartExample/build.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ android {
66
defaultConfig {
77
minSdkVersion 8
88
targetSdkVersion 21
9-
versionCode 41
9+
versionCode 42
1010
versionName '2.1.1'
1111

1212
sourceSets {

‎MPChartLib/src/com/github/mikephil/charting/data/DataSet.java‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ protected void calcMinMax(int start, int end) {
129129

130130
for (int i = start; i <= endValue; i++) {
131131

132+
if(i >= mYVals.size())
133+
break;
134+
132135
Entry e = mYVals.get(i);
133136

134137
if (e != null && !Float.isNaN(e.getVal())) {
@@ -249,7 +252,7 @@ public int getEntryIndex(int x) {
249252
* does calculations at runtime. Do not over-use in performance critical
250253
* situations.
251254
*
252-
* @param xIndex
255+
* @param x
253256
* @return
254257
*/
255258
public List<T> getEntriesForXIndex(int x) {

0 commit comments

Comments
 (0)