RFR: 8324239: JFXPanelHiDPITest fails on Windows 11
Prasanta Sadhukhan
psadhukhan at openjdk.org
Mon Jan 22 09:40:53 UTC 2024
On Mon, 22 Jan 2024 09:01:10 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> Test fails with
>
> JFXPanelHiDPITest > testScale FAILED
> java.lang.NullPointerException: Cannot invoke "java.awt.image.BufferedImage.getWidth()" because "pixelsIm" is null
>
> because scenePeer is not yet created as the test is run with invokeLater.
> FIx is to make it run with invokeAndWait so that it waits for the scene to be created..
Guess better will be to use Platform.runAndWait for scene to be created
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1344#issuecomment-1903600602
More information about the openjfx-dev
mailing list