title: Default value for null fields in a Jasper Report
body: <h2>Background</h2>
  
  <p>A ResultSet has many <code>Double</code> value fields (with patterns like <code>"###0.000"</code>). Some values can be <code>null</code>.</p>
  
  <h2>Problem</h2>
  
  <p>I want to replace <code>null</code> values with <code>"N/A"</code>, which is a <code>String</code> and cannot print to a Double field. Printing <code>"0.00"</code> for <code>null</code> values is unacceptable. </p>
  
  <p>Using an PrintWhenExpression value of <code>($F{value} != null) ? $F{value} : "N/A"</code> does not work; it is not possible to use patterns in that way.</p>
  
  <h2>Idea</h2>
  
  <p>Add hidden fields that write "N/A". These fields will be printed only if value is <code>null</code>.</p>
  
  <h2>Question</h2>
  
  <p>Is there a better solution, and if so, what is it?</p>
  
  <p>Thank you.</p>