[1.1.0] Try to open shared image in PatternWindow will cause a NullPointerException
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
High
|
RaiMan |
Bug Description
Using SikuliX 1.0.1 or lastest SikuliX 2014 1.1.0 nightly build 2014-12-09 on Windows 8.1 x64 with Java 1.7.0_72.
If you have a test which imports another tests and uses its images (I call them shared images),
first of all it won't show a preview of the shared images until the test was run in the IDE.
After the test was executed you can preview the shared images by toggling with Ctrl + T (two times).
Now if you click on a shared image to view it in the Pattern Window it will cause an NullPointerExce
and the Pattern Window won't open.
Here is the trace back:
Exception in thread "AWT-EventQueue-0" java.lang.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at java.awt.
at javax.swing.
at java.awt.
at java.awt.
at java.awt.
Again I cannot reproduce on OS X 1.1.0 with latest nightly 1.1.0 (1.0.1 might have these problems).
# main png").highlight (2) # no thumbnail ever
import testImportSub
find("icon.
# testImportSub
from sikuli import *
"icon.png" # thumbnail is shown from beginning and opens Preview
... sure you are really using the latest sikulix.jar from nightly 1.1.0?