Merge pull request #19 from lmann99/fillChart-check-null

Fix exception when clearing a chart
This commit is contained in:
lmann99 2017-01-26 01:23:23 -05:00 committed by GitHub
commit 1f3ce26c94

View file

@ -38,7 +38,9 @@ public abstract class LoadChartFiller extends ChartFiller {
@Override
public void fillChart(Timeplot chart, Interval interval, Integer size) {
chart.getChildren().clear();
if (chart.getChildren() != null) {
chart.getChildren().clear();
}
chart.invalidate();
if (getOptionalJavascriptCall() != null) {