> This adds a null check in case SwingUtilities.getWindowAncestor is null. > > Although I developed a jtreg test in the original ticket write-up for > 8382396, I later realized I can just ask the preexisting test for JDK-8170794 > to run with different VM options to help test this issue. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Jeremy Wood has updated the pull request incrementally with two additional commits since the last revision: - 8382396: cleaning up imports This is in response to this feedback: https://github.com/openjdk/jdk/pull/30783#discussion_r3110699714 - Update test/jdk/javax/swing/JDesktopPane/TestDesktopManagerNPE.java Co-authored-by: Alexey Ivanov <[email protected]> ------------- Changes: - all: https://git.openjdk.org/jdk/pull/30783/files - new: https://git.openjdk.org/jdk/pull/30783/files/80110f7d..6e0792b9 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=30783&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=30783&range=01-02 Stats: 4 lines in 1 file changed: 0 ins; 4 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/30783.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30783/head:pull/30783 PR: https://git.openjdk.org/jdk/pull/30783
