You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I noticed that some component UIs in FlatLaF save the graphics object rendering hints for antialiasing and stroke control, update them and then re-set the original values after painting is done. However, if the graphics object did not have those hints set in the first place, trying to reset them to original (which is null in that case) can cause an exception to be thrown. This happens for instance in SVGGraphics2D from the jfreesvg library. Adding a check for null in the FlatUIUtils.resetRenderingHints would solve this, it seems.
The text was updated successfully, but these errors were encountered:
Hi,
I noticed that some component UIs in FlatLaF save the graphics object rendering hints for antialiasing and stroke control, update them and then re-set the original values after painting is done. However, if the graphics object did not have those hints set in the first place, trying to reset them to original (which is null in that case) can cause an exception to be thrown. This happens for instance in SVGGraphics2D from the jfreesvg library. Adding a check for null in the FlatUIUtils.resetRenderingHints would solve this, it seems.
The text was updated successfully, but these errors were encountered: