[2.0.x] Maven project: images cannot be loaded using ...class.getResource("someImage.png") --- crashes with NPE

Bug #1853339 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

Uptil version 1.1.3 i was using the following to define images

final Pattern FILE = new Pattern(Main.class.getResource("file.PNG"));

But i tried in 1.1.4 and also in 2.0.0

It returns NPE

java.lang.NullPointerException
 at jarvis.tests.CreateAcpTest.createNewProject(Test.java:23)

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 2.0.0
Revision history for this message
RaiMan (raimund-hocke) wrote :
Changed in sikuli:
milestone: 2.0.0 → 2.0.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.