Toolkit.getImage() never returns null
<p>Im trying to get image from my JAR file. I do it using:</p>

<pre><code>Toolkit.getDefaultToolkit().getImage(getClass().getResource("/path/to/file"));
</code></pre>

<p>But Im doing it in loop so I need to check every iteration if file isn't null (then I must break the loop). But toolkit never returns null value. Now to check then, if it returned correct image or null?</p>
