8213261: test javax/swing/plaf/nimbus/AllSwingComponentsBaselineTest.java fails
Reviewed-by: serb
This commit is contained in:
parent
3656228787
commit
c03cdce50e
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user