From b4cc3f9922ccc26b3bdfaccdc45047b4d57d41dd Mon Sep 17 00:00:00 2001 From: Andreas Billmann Date: Thu, 14 Jan 2016 10:43:11 +0100 Subject: [PATCH] bugfix: NPE when adding new row as the setValue has to be called at the end, after all other properties are set --- src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVRow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVRow.java b/src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVRow.java index ac2bffc..7f144bd 100644 --- a/src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVRow.java +++ b/src/main/java/ninja/javafx/smartcsv/fx/table/model/CSVRow.java @@ -81,9 +81,9 @@ public class CSVRow { public void addValue(String column, String value) { CSVValue v = new CSVValue(); v.setValidator(validator); - v.setValue(value); v.setColumn(column); v.setRowNumber(rowNumber); + v.setValue(value); columns.put(column, new SimpleObjectProperty<>(v)); }