Skip to content

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

Open
Forgen wants to merge 1 commit intooculix-org:masterfrom
Forgen:master
Open

Update Device.java getLocation() to avoid NullPointerException#630
Forgen wants to merge 1 commit intooculix-org:masterfrom
Forgen:master

Conversation

@Forgen
Copy link
Copy Markdown

@Forgen Forgen commented Sep 22, 2024

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

@Forgen
Copy link
Copy Markdown
Author

Forgen commented Sep 22, 2024

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())

Copy link
Copy Markdown

@HelioGuilherme66 HelioGuilherme66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple fix but effective.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants