RaiMan / SikuliX-2014

SikuliX version 1.1.2 (until February 2018)
http://sikulix.com
805 stars 235 forks source link

[Exception] IDE get Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException when insert a image #308

Open karlinmilk opened 6 years ago

karlinmilk commented 6 years ago

I can't insert any image in IDE, it always get exception as below: [info] load image: D:/Jolin/Powershell/Pattern/ROG_GamingCenter/GamingCenter.png

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at org.sikuli.ide.EditorPatternButton.createThumbnailImage(EditorPatternButton.java:234) at org.sikuli.ide.EditorPatternButton.setFilename(EditorPatternButton.java:204) at org.sikuli.ide.EditorPatternButton.init(EditorPatternButton.java:76) at org.sikuli.ide.EditorPatternButton.(EditorPatternButton.java:49) at org.sikuli.ide.SikuliIDE$ButtonInsertImage.actionPerformed(SikuliIDE.java:2180) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java

And the IDE will be closed automatically if I screenshot a image. Please help to clarify the issue.

Issue Screenshot: https://drive.google.com/open?id=1zv9hBpnz7Mpxz5JTsaRd-FltPLXa9W_R

Sikulix- v1.1.1.1 Java - version java version "1.8.0_152" Java(TM) SE Runtime Environment (build 1.8.0_152-b16) Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)

RaiMan commented 6 years ago

Are you using the shortcuts in the lefthand bar?

if yes,

What Windows is it?

karlinmilk commented 6 years ago

Yes, I used shorts in the lefthand bar. I have tried the method you provided, but the issue still happened.

My windows is Windows10 Pro version:1709 OS build: 16299.248

Thanks