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

Fix VBL setters to always return arrays of valid polygons. #3337

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Jan 15, 2022

Identify the Bug or Feature request

Addresses #2763

Description of the Change

  • getTokenVBL() now always returns an array and never an empty string.
  • getVBL(), getTokenVBL(), getHillVBL(), and getPitVBL() now return an empty array where previously they
    returned a singleton array containing an invalid empty polygon.

Possible Drawbacks

  • If any code relied on specific return values to detect empty VBL, those checks will no longer be triggered.

Documentation Notes

N/A

Release Notes

  • Fixed an issue where set*VBL() would error out when passed empty VBL from a previous get*VBL() call.

This change is Reviewable

- `getTokenVBL()` now always returns an array and never an empty string.
- `getVBL()`, `getTokenVBL()`, `getHillVBL()`, and `getPitVBL()` now return an empty array where previously they
  returned a singleton array containing an invalid empty polygon.
Copy link
Contributor

@Phergus Phergus left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @kwvanderlinde)

@Phergus Phergus merged commit d644f73 into RPTools:develop Jan 15, 2022
@kwvanderlinde kwvanderlinde deleted the issue-2763-errors-when-drawing-empty-vbl branch June 14, 2022 03:22
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