bugfix: NPE when adding new row as the setValue has to be called at the end, after all other properties are set

This commit is contained in:
Andreas Billmann
2016-01-14 10:43:11 +01:00
parent 16b848adc9
commit b4cc3f9922

View File

@@ -81,9 +81,9 @@ public class CSVRow {
public void addValue(String column, String value) { public void addValue(String column, String value) {
CSVValue v = new CSVValue(); CSVValue v = new CSVValue();
v.setValidator(validator); v.setValidator(validator);
v.setValue(value);
v.setColumn(column); v.setColumn(column);
v.setRowNumber(rowNumber); v.setRowNumber(rowNumber);
v.setValue(value);
columns.put(column, new SimpleObjectProperty<>(v)); columns.put(column, new SimpleObjectProperty<>(v));
} }