Skip to content

Commit e99c026

Browse files
author
SilinMykola
committed
1239: bugfix Index out of range
1 parent 18b03d4 commit e99c026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/magento/idea/magento2uct/versioning/VersionStateManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private void compute(final VersionStateIndex index) {
227227
*/
228228
private String escapeFqn(final @NotNull String fqn) {
229229
return MagentoTypeEscapeUtil.escape(
230-
fqn.trim().charAt(0) == '\\' ? fqn.trim() : '\\' + fqn.trim()
230+
fqn.trim().length() > 0 && fqn.trim().charAt(0) == '\\' ? fqn.trim() : '\\' + fqn.trim()
231231
);
232232
}
233233
}

0 commit comments

Comments
 (0)