Why does this throw NullPointerException?
<pre><code>e.getCategory() != null ? e.getCategory().getName() : "";
</code></pre>

<p>This throws a <code>NullPointerException</code> and I do not understand why. Can anyone explain?</p>
