Revision 2651

tmp/org.txm.chartsengine.core/src/org/txm/chartsengine/core/results/ChartResult.java (revision 2651)
4 4
package org.txm.chartsengine.core.results;
5 5

  
6 6
import java.util.ArrayList;
7
import java.util.HashMap;
7 8

  
8 9
import org.txm.chartsengine.core.ChartCreator;
9 10
import org.txm.chartsengine.core.ChartsEngine;
......
415 416
		this.chartType = chartType;
416 417
		
417 418
		// FIXME: SJ: need to validate this
418
		this.getLastParametersFromHistory().put(ChartsEnginePreferences.CHART_TYPE, "__undef___"); //$NON-NLS-1$
419
		HashMap<String, Object> last = this.getLastParametersFromHistory();
420
		if (last != null) {
421
			this.getLastParametersFromHistory().put(ChartsEnginePreferences.CHART_TYPE, "__undef___"); //$NON-NLS-1$
422
		}
419 423
		
420 424
		
421 425
		// this.getLastParametersFromHistory().put(ChartsEnginePreferences.CHART_TYPE, "[Default]");

Also available in: Unified diff