← Back to team overview

sikuli-driver team mailing list archive

[Bug 1402056] Re: [1.0.1] Try to open shared image in PatternWindow will cause a NullPointerException

 

Again I cannot reproduce on OS X 1.1.0 with latest nightly 1.1.0 (1.0.1
might have these problems).

# main
import testImportSub
find("icon.png").highlight(2) # no thumbnail ever

# 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?

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1402056

Title:
  [1.0.1] Try to open shared image in PatternWindow will cause a
  NullPointerException

Status in Sikuli:
  Opinion

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 NullPointerException
  and the Pattern Window won't open.

  
  Here is the trace back:

  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
  at org.sikuli.ide.EditorPatternButton.createThumbnailImage(EditorPatternButton.java:253)
  at org.sikuli.ide.EditorPatternButton.setFilename(EditorPatternButton.java:224)
  at org.sikuli.ide.EditorPatternButton.getFilename(EditorPatternButton.java:217)
  at org.sikuli.ide.PatternPaneNaming.init(PatternPaneNaming.java:46)
  at org.sikuli.ide.PatternPaneNaming.<init>(PatternPaneNaming.java:38)
  at org.sikuli.ide.PatternWindow.init(PatternWindow.java:74)
  at org.sikuli.ide.PatternWindow.<init>(PatternWindow.java:54)
  at org.sikuli.ide.EditorPatternButton.actionPerformed(EditorPatternButton.java:153)
  at org.sikuli.ide.EditorPatternLabel.mouseClicked(EditorPatternLabel.java:327)
  at java.awt.Component.processMouseEvent(Unknown Source)
  at javax.swing.JComponent.processMouseEvent(Unknown Source)
  at java.awt.Component.processEvent(Unknown Source)
  at java.awt.Container.processEvent(Unknown Source)
  at java.awt.Component.dispatchEventI

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1402056/+subscriptions


References