<Swing Dev> [12] Review Request: 8210739 Calling JSpinner's setFont with null throws NullPointerException
Prasanta Sadhukhan
prasanta.sadhukhan at oracle.com
Thu Oct 11 08:40:17 UTC 2018
Looks good to me.
Regards
Prasanta
On 02-Oct-18 4:15 AM, Sergey Bylokhov wrote:
> Hello.
> Please review the fix for jdk 12.
>
> This change updates the implementation of JDK-6421058, JDK-5036022 and
> JDK-8205144. The goal of those changes were to use the font of the
> JSpinner in textComponent(which is used inside the JSpinner).
> But the NPE may occur when the user sets the font of the spinner to null.
>
> In the fix an additional check was added for "null" font.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8210739
> Webrev: http://cr.openjdk.java.net/~serb/8210739/webrev.00
>
>
More information about the swing-dev
mailing list