<AWT Dev> [14] Review Request: 8235739 Rare NPE at WComponentPeer.getGraphics()

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Wed Dec 11 22:31:11 UTC 2019


webrev is re-uploaded.

On 12/10/19 9:23 pm, Sergey Bylokhov wrote:
> Hello.
> Please review the fix for JDK 14.
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8235739
> Fix: http://cr.openjdk.java.net/~serb/8235739/webrev.00
> 
> In the WComponentPeer.getGraphics() we may get NPE because
> AWTAccessor....getPeer("window") can return null if the "window"
> was disposed already and its peer was set to null.
> 


-- 
Best regards, Sergey.


More information about the awt-dev mailing list