Here you can find the source of safeNull(BigDecimal value)
public static BigDecimal safeNull(BigDecimal value)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static BigDecimal safeNull(BigDecimal value) { return value == null ? BigDecimal.ZERO : value; }/*from w ww .j a va 2 s . com*/ }