title: Exception in Java for null values in lambda expression while filtering
body: <p>I have an object, <code>Person</code>, which has two properties <code>Name</code> and <code>Status</code>. From a list of objects I hope to filter out the <code>Person</code> objects with a status of <code>In Progress</code>. Here is my code:</p>
  
  <pre><code>personList.stream().filter(
      t -&gt; t.getStatus().equalsIgnoreCase(
          "In Progress")).collect(Collectors.toList());
  </code></pre>
  
  <p>But the code is throwing a <code>nullpointerexception</code> error. When I checked, I saw that a few of the objects with <code>In Progress</code> status had null values. How do we handle this in lambda?</p>