title: NullPointerException when comparing with null values in java
body: <pre><code>if(status.equals(null))
  {
    status="Pass";
  }
  </code></pre>
  
  <p>from above code it throws <code>NullPointerException</code>, please give solution for comparing value with <code>null</code>.</p>