RFR: 8288567: [macOS] NPE at sun.lwawt.macosx.CPlatformComponent.setBounds
Maxim Kartashev
mkartashev at openjdk.org
Tue Jun 21 09:40:54 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).
Perhaps my initial analysis about `CWarningWindow` is incorrect, but I can't seem to find any connection between that and `CPlatformComponent`. So maybe the culprit is actually outside of OpenJDK code...
-------------
PR: https://git.openjdk.org/jdk/pull/9184
More information about the client-libs-dev
mailing list