From e7c9630eb97dd77b484234bd1ddf218ba3f66991 Mon Sep 17 00:00:00 2001 From: buczekp <buczekp> Date: Mon, 15 Feb 2010 09:40:41 +0000 Subject: [PATCH] [LMS-1385] fixed formatting of custom column numbers SVN: 14731 --- .../client/web/server/calculator/GridExpressionUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/server/calculator/GridExpressionUtils.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/server/calculator/GridExpressionUtils.java index b0d24305aba..edf0eebd633 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/server/calculator/GridExpressionUtils.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/server/calculator/GridExpressionUtils.java @@ -129,7 +129,7 @@ public class GridExpressionUtils RowCalculator<T> calculator = calculators.get(columnId); PrimitiveValue value = evalCustomColumn(rowData, customColumn, calculator); // don't modify type if it is a null string - if (value.toString() == null) + if (value.toString() != null) { customColumn.setDataType(DataTypeUtils.getCompatibleDataType(customColumn .getDataType(), value.getDataType())); -- GitLab