mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8199547: Exception to Pattern Syntax
Reviewed-by: rriggs
This commit is contained in:
parent
3a7104760a
commit
087ea6befb
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue