<Swing Dev> [12] Review Request: 8210739 Calling JSpinner's setFont with null throws NullPointerException

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Mon Oct 1 22:45:32 UTC 2018

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

Best regards, Sergey.

More information about the swing-dev mailing list