Skip to content

Correct handling of step values of zero #18532

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

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

AndyButland
Copy link
Contributor

@AndyButland AndyButland commented Mar 3, 2025

Prerequisites

  • I have added steps to test this contribution in the description below

Fixes: #18528

Description

The linked issue highlights a problem with the property step validation we've added, which will fail if the step is zero due to a divide by zero error.

I've resolved this by always passing validation if the step is zero (which avoids the error, and is also correct as any value is valid for a zero step).

To test, see the tests, and manually see the replication steps on the issue.

Should be cherry-picked to the release branch once merged.

Copy link
Contributor

@andr317c andr317c left a comment

Choose a reason for hiding this comment

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

Works for me

@nikolajlauridsen nikolajlauridsen merged commit 92cb355 into v15/dev Mar 4, 2025
21 of 22 checks passed
@nikolajlauridsen nikolajlauridsen deleted the v15/bugfix/handle-step-zero branch March 4, 2025 10:18
@AndyButland
Copy link
Contributor Author

I've cherry-picked this into release/15.3 // @andr317c @nikolajlauridsen

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.

3 participants