Backport the fix for a crash -------------
Commit messages: - Backport 269d6897e4d4e62beff3a2179dcdabe8a0bf0bc7 Changes: https://git.openjdk.org/jfx/pull/1540/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1540&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8338478 Stats: 87 lines in 1 file changed: 32 ins; 14 del; 41 mod Patch: https://git.openjdk.org/jfx/pull/1540.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/1540/head:pull/1540 PR: https://git.openjdk.org/jfx/pull/1540