title: handling Null for bigdecimal
body: <p>My code looks like below,</p>
  
  <pre><code>caseX caseXObj = caseXBo.getCaseXDao().findCaseXBySID(selectedID);
  
  if(caseXObj != null &amp;&amp; caseXObj.getCaseInGrossAmt() != null){
  
  } else {
      caseXObj.setCaseAmt(BigDecimal.ZERO);
  }
  </code></pre>
  
  <p>I have handled NUll pointer for the caseX and also for getter and when null set the bigdeciaml to a default ZERO value. Still I get Null pointer exception in the setter line.Any suggestions?</p>