<Swing Dev> [8] Review request for 6337518: Null Arrow Button Throws Exception in BasicComboBoxUI

Anton Litvinov anton.litvinov at oracle.com
Fri May 31 16:03:37 UTC 2013


Hello,

Please review the following fix for a bug.

Bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6337518
Webrev: http://cr.openjdk.java.net/~alitvinov/6337518/webrev.00

This bug consists in throwing of NullPointerException from the method 
"javax.swing.plaf.basic.BasicComboBoxUI.installComponents()", if 
"createArrowButton()" method returns null. The solution moves code 
generating this exception into a body of an already existing "if" block 
which checks the result of a call to "createArrowButton()" method for null.

Thank you,
Anton



More information about the swing-dev mailing list