<AWT Dev> [JDK-8171000]Robot.createScreenCapture() crashes in wayland mode
krishna.addepalli at oracle.com
Thu Feb 1 12:06:36 UTC 2018
Please review a fix for JDK-8171000: https://bugs.openjdk.java.net/browse/JDK-8171000
The crash happens since XGetImage can return NULL in case of Wayland, which doesnot permit reading screen pixels outside the owning window. Added a null check to prevent the same, and also refactored and removed unnecessary code to make the function simpler.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the awt-dev