Fixed PrintNullString.java to accept empty iterator as a valid input. With recent TextLayout changes, empty iterators are treated as a no-op (similar to empty strings) and no longer throw IllegalArgumentException, causing the previous expectation to fail on newer JDKs.
Tested the fix on windows, macOS and linux; it works as expected across all platforms. ------------- Commit messages: - 8377534 Changes: https://git.openjdk.org/jdk/pull/30389/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30389&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8377534 Stats: 14 lines in 1 file changed: 0 ins; 8 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/30389.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30389/head:pull/30389 PR: https://git.openjdk.org/jdk/pull/30389
