title: java Parse Boolean that may be null to Boolean
body: <p>I noticed an issue with <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html" rel="noreferrer">java.lang.Boolean</a> class that it can not parse nulls. I know it has the <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html#parseBoolean(java.lang.String)" rel="noreferrer"><code>parseBoolean</code></a> static method but as it's signature states it only accepts <code>String</code> and not an <code>Object</code>.</p>
  
  <p>In other words, it has the following signature:</p>
  
  <pre><code>public static boolean parseBoolean(String s)
  </code></pre>
  
  <p>but not:</p>
  
  <pre><code>Boolean.parseBoolean(Object)
  </code></pre>
  
  <p>What is the best way to check a Boolean value without falling on NullPointerException?</p>