sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #53507
[Bug 1853339] Re: [2.0.x] Maven project: images cannot be loaded using ...class.getResource("someImage.png") --- crashes with NPE
tracked on Github: https://github.com/RaiMan/SikuliX1/issues/239
** Bug watch added: SikuliX @ Github Issues #239
https://github.com/RaiMan/SikuliX1/issues/239
** Changed in: sikuli
Milestone: 2.0.0 => 2.0.2
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1853339
Title:
[2.0.x] Maven project: images cannot be loaded using
...class.getResource("someImage.png") --- crashes with NPE
Status in Sikuli:
In Progress
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1853339/+subscriptions
References