← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #294000]: Location outside any screen

 

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

RaiMan proposed the following answer:
ok, found the cause for the NPE:

the offending code in class mouse is:
  r = loc.getScreen().getRobot();

I will change it in a way, that code during startup does not crash in such a situation.
But since the error comes up, it at least is a hint for some odd situation with the mouse location reported from inside Java and should be checked by the user.
If such a situation later happens during intended mouse movements, there is no default reaction, that makes sense and hence letting the workflow crash is suitable, but I admit: it should not be an NPE, but some exception with a more meaningful message.

I will talk with the programmer ;-)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.