Safeguard for cubic bezier drawing
This commit is contained in:
parent
339fa16324
commit
4d9dc0aa06
1 changed files with 2 additions and 0 deletions
|
@ -206,6 +206,8 @@ public class LineChartRenderer extends LineRadarRenderer {
|
|||
Entry cur = prev;
|
||||
Entry next = dataSet.getEntryForIndex(mXBounds.min + 1);
|
||||
|
||||
if (cur == null || next == null) return;
|
||||
|
||||
// let the spline start
|
||||
cubicPath.moveTo(cur.getX(), cur.getY() * phaseY);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue