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-3732: Prevent possible IAE in DocumentViewOp. #4623

Merged
merged 1 commit into from
Sep 11, 2022

Conversation

lkishalmi
Copy link
Contributor

Kind of trivial fix for a rare IllegalArgumentException. There is a small chance that it would result an NPE later in the code, though as far as I've checked the call stack in #3732 the return value of createTextLayout(String text, Font font) stored, and when later retrieved it is checked for null.

@lkishalmi lkishalmi added this to the NB16 milestone Sep 11, 2022
@mbien mbien linked an issue Sep 11, 2022 that may be closed by this pull request
Copy link
Member

@mbien mbien left a comment

Choose a reason for hiding this comment

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

awesome. good fix.

I just learned that you have to remove the triage label from the issue, otherwise you can't link it to PRs :) (already linked it)

@lkishalmi lkishalmi merged commit 0b33041 into apache:master Sep 11, 2022
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.

Netbeans freezes while editing a file and resizing its components
2 participants