Excell Import of Rule template does null pointer whena cell is not filled

This commit is contained in:
Nicolas Héron 2020-07-20 11:41:52 +02:00
commit 337a723d49

View file

@ -126,7 +126,9 @@ public class EditTemplateView extends VerticalLayout {
for (InterpolationVariable interpolationVariable : model.getInterpolationVariablesList()){ for (InterpolationVariable interpolationVariable : model.getInterpolationVariablesList()){
Object o = line.get(interpolationVariable.getVarName()); Object o = line.get(interpolationVariable.getVarName());
if (o!= null) {
cols[k] = o.toString(); cols[k] = o.toString();
}
k++; k++;
} }
model.addRow(cols); model.addRow(cols);