← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #165384]: JRuby: Java NullPointerException if imagefile not found

 

Question #165384 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/165384

RaiMan posted a new comment:
I just found a simple workaround:

instead of saying
find("some-image.png")

say
find(Pattern.new("some-image.png"))

this will not switch to text search, in case image not found, since a
Pattern always is image only.

I will put this in my :some-image.to_img hack.

I love Ruby and JRuby :-)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.