8199547: Exception to Pattern Syntax
Reviewed-by: rriggs
This commit is contained in:
parent
3a7104760a
commit
087ea6befb
@ -106,7 +106,7 @@ public class PatternSyntaxException
|
||||
}
|
||||
sb.append(System.lineSeparator());
|
||||
sb.append(pattern);
|
||||
if (index >= 0) {
|
||||
if (index >= 0 && pattern != null && index < pattern.length()) {
|
||||
sb.append(System.lineSeparator());
|
||||
for (int i = 0; i < index; i++) sb.append(' ');
|
||||
sb.append('^');
|
||||
|
Loading…
x
Reference in New Issue
Block a user