RaiMan / SikuliX1

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

Update Device.java getLocation() to avoid NullPointerException #630

Open Forgen opened 2 months ago

Forgen commented 2 months ago

Make change to address https://bugs.launchpad.net/sikuli/+bug/2060175 "Mouse location throws NullPointerException"

Forgen commented 2 months ago

I did a basic sanity test with a Sikuli script without issue:

print(Mouse.at().getPoint())

click("1727026420682") #click any random image to move mouse cursor

print(Mouse.at().getPoint())