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

Ensure a frame's undocked bounds are not null prior to using them #3880

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Mar 24, 2023

Identify the Bug or Feature request

Addresses #3316

Description of the Change

Prior to adding the undocked x, y, width and height to the result of getInfo("client"), we now check that the bounds are not null. If it is null, we do not include these fields in the result.

Possible Drawbacks

There may be frameworks counting on these fields always being present. This isn't a breaking change since this case has always resulted in a NPE anyways. Still, some updates may be needed.

Documentation Notes

N/A

Release Notes

  • Fixed an NPE raised by getInfo("client") as a result of certain docked frames not having an undocked state.

This change is Reviewable

@cwisniew cwisniew merged commit d5ef5ec into RPTools:develop Mar 28, 2023
@cwisniew cwisniew added the bug label Mar 29, 2023
@kwvanderlinde kwvanderlinde deleted the bugfix/3316-getInfo-client-NPE-undocked-bounds branch April 13, 2023 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants