8213261: test javax/swing/plaf/nimbus/AllSwingComponentsBaselineTest.java fails

Reviewed-by: serb
This commit is contained in:
Prasanta Sadhukhan 2018-11-03 09:50:22 +05:30
parent 3656228787
commit c03cdce50e

View File

@ -22,7 +22,8 @@
*/
/* @test
@bug 8192888
@key headful
@bug 8192888 8213261
@summary Verifies getBaseline causes NPE for Nimbus L&F
@run main AllSwingComponentsBaselineTest
*/
@ -58,7 +59,9 @@ public class AllSwingComponentsBaselineTest {
BasicButtonUI bbUI = (BasicButtonUI) UIManager.getUI(b);
bbUI.getBaseline(b, b.getHeight(), b.getWidth());
} finally {
frame.dispose();
if (frame != null) {
frame.dispose();
}
}
}
}