HHH-6789 StringIndexOutOfBoundsException at TemplatedViolatedConstraintNameExtracter.extractUsingTemplate
This commit is contained in:
parent
53cae7ace7
commit
ee020c8215
|
@ -46,7 +46,7 @@ public abstract class TemplatedViolatedConstraintNameExtracter implements Violat
|
|||
}
|
||||
|
||||
int start = templateStartPosition + templateStart.length();
|
||||
int end = message.lastIndexOf( templateEnd, start );
|
||||
int end = message.indexOf( templateEnd, start );
|
||||
if ( end < 0 ) {
|
||||
end = message.length();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue