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 needs a unit test case for dereferencing selectedRange() when it is 
null.

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

PR Comment: https://git.openjdk.org/jfx/pull/2292#issuecomment-5540254522

Reply via email to