title: Different result with ternary operator and if else
body: <pre class="lang-html prettyprint-override"><code>1. hasTimePeriodExtraDays = (externalSystemConfigsDTO == null) ? true : externalSystemConfigsDTO.hasTimePeriodExtraDays();
  
  2. if(externalSystemConfigsDTO == null){
              hasTimePeriodExtraDays = true;
          } else {
              hasTimePeriodExtraDays = externalSystemConfigsDTO.hasTimePeriodExtraDays();
          }
  </code></pre>
  
  <p>the 1 clause not passing UT as nullpointer thrown, but the 2nd pass the UT.</p>