Bug: https://bugs.openjdk.java.net/browse/JDK-8089900 Webrev : http://cr.openjdk.java.net/~prr/8089900/ Reported numerous times over many years and releases. Root cause in core text not known but we can avoid the NPE Read the bug report and it's duplicates for more details. -phil.