RFR: 8288567: [macOS] NPE at sun.lwawt.macosx.CPlatformComponent.setBounds
kristylee88
duke at openjdk.org
Fri Jun 17 15:58:57 UTC 2022
On Thu, 16 Jun 2022 11:30:01 GMT, Maxim Kartashev <mkartashev at openjdk.org> wrote:
> Even though I have not been able to reproduce the crash by hand, the problem and the fix are fairly obvious:
> `CWarningWindow` doesn't have a peer, so `platformWindow.getPeer()` can be null in that case. The fix is to accomodate for that in `CPlatformComponent.setBounds()`. Similar provisions exist elsewhere in the vicinity (for ex. `CPlatformLWWindow.setBounds()`, `CPlatformWindow.maximize()`, etc).
Marked as reviewed by kristylee88 at github.com (no known OpenJDK username).
-------------
PR: https://git.openjdk.org/jdk/pull/9184
More information about the client-libs-dev
mailing list