We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db9c463 commit da70482Copy full SHA for da70482
hibernate-core/src/main/java/org/hibernate/internal/util/StringHelper.java
@@ -128,7 +128,10 @@ public static String replace(
128
return template;
129
}
130
else {
131
- String beforePlaceholder = template.substring( 0, loc );
+ String beforePlaceholder = "";
132
+ if (loc > 0) {
133
+ beforePlaceholder = template.substring(0, loc);
134
+ }
135
String afterPlaceholder = template.substring( loc + placeholder.length() );
136
return replace(
137
beforePlaceholder,
0 commit comments