We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e7cce59 + 123307f commit c09931bCopy full SHA for c09931b
MPChartLib/src/main/java/com/github/mikephil/charting/charts/CombinedChart.java
@@ -261,11 +261,13 @@ protected void drawMarkers(Canvas canvas) {
261
}
262
263
// callbacks to update the content
264
- IMarker markerItem = mMarkers.get(i % mMarkers.size());
265
- markerItem.refreshContent(e, highlight);
+ if (!mMarkers.isEmpty()) {
+ IMarker markerItem = mMarkers.get(i % mMarkers.size());
266
+ markerItem.refreshContent(e, highlight);
267
- // draw the marker
268
- markerItem.draw(canvas, pos[0], pos[1]);
+ // draw the marker
269
+ markerItem.draw(canvas, pos[0], pos[1]);
270
+ }
271
272
273
0 commit comments