In GridlockWithUI.java, trafficChart has been constructed (In Line 183) before removeAllSeries(). A test shows that after the construction function, trafficChart is null. So, my question should be: the construction function of TimeSeriesChartGenerator does not work properly.