title: My resource does not load - "Input stream must not be null"
body: <p>I read ~4 Stackoverflow Posts (<a href="https://stackoverflow.com/questions/3861989/preferred-way-of-loading-resources-in-java">1</a>, <a href="https://stackoverflow.com/questions/3727994/how-do-i-reference-a-resource-in-java">2</a>) already, and did everything like it was explained there, but I get a NullPointerException while I try to load an Image.</p>
  
  <pre><code>Exception in thread "JavaFX Application Thread" java.lang.NullPointerException: Input stream must not be null
  </code></pre>
  
  <p>My package structure:</p>
  
  <p><a href="https://i.stack.imgur.com/w3jPB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w3jPB.png" alt="packages"></a>
  </p>
  
  <p>Code where I try to load the image:</p>
  
  <pre><code>Image image = new Image(this.getClass().getResourceAsStream("/regexgolf2/ui/img/edit.png"));
  </code></pre>
  
  <p>I don't understand why It does not work.</p>