On Fri, 4 Sep 2026 08:58:43 GMT, Jose Pereda <[email protected]> wrote:

> This PR adds a guard to WebKit/EditorJava.cpp, to prevent passing an empty 
> selection to the pasteboard, that would cause an immediate JVM termination, 
> when firing a copy key event over a focused WebView that has no selection 
> (for instance, it has not been clicked/selected yet).
> 
> ---------
> - [X] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

The fix is good, it prevents dereferencing selectedRange() when it is null. can 
we have a unit test case?

-------------

PR Review: https://git.openjdk.org/jfx/pull/2292#pullrequestreview-5112817104

Reply via email to