RaiMan / SikuliX1

SikuliX version 2.0.0+ (2019+)
https://sikulix.github.io
MIT License
2.77k stars 355 forks source link

[1.1.4] findText(): NPE in FindInput2.java::isValid() --- fixed build #157 #61

Closed agum closed 5 years ago

agum commented 5 years ago

Hi, I'm using the project since several days. It's quite promising for my needs and has many great features. Thanks for your efforts. I've encountered NullPointerException today when new snapshot version was pulled by maven into my project.

Adding this validation causes NullPointerException in case of findText() invocation since 'target' field is not set - only 'targetText' is set then.

https://github.com/RaiMan/SikuliX1/blob/dda8fe0ad89fb0ffba699574112bd616e985ec6b/API/src/main/java/org/sikuli/script/FindInput2.java#L63

Can You please investigate and fix that?

RaiMan commented 5 years ago

Should work now.