diff --git a/src/main/java/com/redhat/devtools/intellij/lsp4mp4ij/psi/core/project/MicroProfileConfigPropertyInformation.java b/src/main/java/com/redhat/devtools/intellij/lsp4mp4ij/psi/core/project/MicroProfileConfigPropertyInformation.java index 09d35b462..59312baa6 100644 --- a/src/main/java/com/redhat/devtools/intellij/lsp4mp4ij/psi/core/project/MicroProfileConfigPropertyInformation.java +++ b/src/main/java/com/redhat/devtools/intellij/lsp4mp4ij/psi/core/project/MicroProfileConfigPropertyInformation.java @@ -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 {