--- old/test/javax/swing/plaf/basic/BasicComboPopup/8154069/Bug8154069.java 2020-07-05 23:44:36.570324690 +0100 +++ new/test/javax/swing/plaf/basic/BasicComboPopup/8154069/Bug8154069.java 2020-07-05 23:44:36.437323826 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -23,6 +23,7 @@ /* * @test + * @key headful * @bug 8154069 * @summary Jaws reads wrong values from comboboxes when no element is selected * @run main Bug8154069 @@ -89,7 +90,7 @@ } } finally { SwingUtilities.invokeAndWait(() -> { - frame.dispose(); + if (frame != null) { frame.dispose(); } }); } }