Skip to content

Commit

Permalink
fix: StringIndexOutOfBoundsException
Browse files Browse the repository at this point in the history
Fixes #1413

Signed-off-by: azerr <[email protected]>
  • Loading branch information
angelozerr committed Dec 6, 2024
1 parent d7b7cb4 commit 9177446
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public String getSourceConfigFileURI() {
* @return the property name with any profile information removed
*/
public static String getPropertyNameWithoutProfile(String propertyNameWithProfile) {
if (propertyNameWithProfile.charAt(0) == '%') {
if (propertyNameWithProfile.length() > 0 && propertyNameWithProfile.charAt(0) == '%') {
int firstPeriodIndex = propertyNameWithProfile.indexOf('.');
return propertyNameWithProfile.substring(firstPeriodIndex + 1);
} else {
Expand Down

0 comments on commit 9177446

Please sign in to comment.