Skip to content

Commit

Permalink
Fix for missing setters in getInstance method
Browse files Browse the repository at this point in the history
The zoomAndCenterAnimated method in BarLineChartBase crashes with a NullPointer exception because the yAxis variable is null when onAnimationUpdate is called. The yAxis is null because of missing setters in the getInstance method of AnimatedZoomJob.
stephenmcbride authored Feb 28, 2017
1 parent 0c919ab commit 6c54f0b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -33,6 +33,8 @@ public static AnimatedZoomJob getInstance(ViewPortHandler viewPortHandler, View
result.view = v;
result.xOrigin = xOrigin;
result.yOrigin = yOrigin;
result.yAxis = axis;
result.xAxisRange = xAxisRange;
result.resetAnimator();
result.animator.setDuration(duration);
return result;

0 comments on commit 6c54f0b

Please sign in to comment.