Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent possible NPE while dragging the thumbs of the RangeSlider control #1507

Merged
merged 2 commits into from Jun 28, 2023

Conversation

jperedadnr
Copy link
Collaborator

Fixes #1506

It is a very weird issue that shouldn't happen. But in that case, this PR simply adds a null check and sets preDragThumbPoint to the coordinates first drag event.

@github-actions
Copy link

Hi jperedadnr,

Welcome to ControlsFX and thank you for taking time to contribute to this project.

We do not recognise you as a contributor. Can you please sign ControlsFX Individual Contributor Agreement: https://cla.controlsfx.org ?

@github-actions github-actions bot added the CLA label Jun 27, 2023
@abhinayagarwal abhinayagarwal merged commit d141298 into controlsfx:master Jun 28, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPE: Cannot invoke "javafx.geometry.Point2D.getX()" because "this.preDragThumbPoint" is null
2 participants