title: Java 8 Stream Filter returning an empty list always
body: <p>I want to filter all the transfers for which the signedOn field is null. When I run the first piece of code it's clear which ones are null and which ones are not and they're logged correctly, but when I run the stream filter it returns an empty list and I can't seem to find what's the problem with it... signedOn is a Date field.</p>
  
  <p>This works and logs all wether the entries are null or not:</p>
  
  <pre><code>    for (Transfer transfer : route.getTransferCollection()) {
          if (transfer.getSignedOn() == null) {
              logInfo("This transfer is null");
          } else if (transfer.getSignedOn() != null) {
              logInfo("This transfer is not null");
          }
      }
  </code></pre>
  
  <p>This returns an empty list:</p>
  
  <pre><code>    return route.getTransferCollection()
              .stream()
              .filter(transfer -&gt; transfer.getSignedOn() == null)
              .collect(Collectors.toList());
  }
  </code></pre>