fixes the method addCurrencySymbol to return zero if

the parameter is null

FEA: ItEr76S04BugFixing
This commit is contained in:
Susana Montes Pedreira 2012-05-08 20:25:37 +01:00
parent a7e2850045
commit 02ec7f527e

View file

@ -661,6 +661,7 @@ public class Util {
* {@link Configuration} object.
*/
public static String addCurrencySymbol(BigDecimal value) {
value = (value == null ? BigDecimal.ZERO : value);
DecimalFormat decimalFormat = (DecimalFormat) DecimalFormat
.getInstance();
decimalFormat.applyPattern(getMoneyFormat());