Skip to content

Commit f00bd51

Browse files
kamilkrzywanskikkrzywanski
andauthored
Porting old fix for issue for StringIndexOutOfBoundsException (#987)
Fix for #986 Co-authored-by: kkrzywanski <k.krzywanski@aasys.pl>
1 parent ab4db83 commit f00bd51

File tree

1 file changed

+1
-1
lines changed
  • querydsl-tooling/querydsl-codegen-utils/src/main/java/com/querydsl/codegen/utils/model

1 file changed

+1
-1
lines changed

querydsl-tooling/querydsl-codegen-utils/src/main/java/com/querydsl/codegen/utils/model/SimpleType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public SimpleType(
103103
this.fullName = fullName;
104104
this.packageName = packageName;
105105
this.simpleName = simpleName;
106-
if (packageName.length() > 0) {
106+
if (packageName.length() > 0 && fullName.length() > packageName.length()) {
107107
this.localName = fullName.substring(packageName.length() + 1);
108108
} else {
109109
this.localName = fullName;

0 commit comments

Comments
 (0)