Check for the available range on the document model and adjust text range request accordingly.
------------- Commit messages: - 8284690: [macos] VoiceOver : Getting java.lang.IllegalArgumentException: Invalid location on Editable JComboBoxaaaa Changes: https://git.openjdk.java.net/jdk/pull/8820/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8820&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8284690 Stats: 4 lines in 1 file changed: 2 ins; 0 del; 2 mod Patch: https://git.openjdk.java.net/jdk/pull/8820.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/8820/head:pull/8820 PR: https://git.openjdk.java.net/jdk/pull/8820