Skip to content

Commit

Permalink
Merge pull request #1011 from turkeylurkey/issue-995
Browse files Browse the repository at this point in the history
Check for null or empty class name in generate OpenAPI annotations
  • Loading branch information
turkeylurkey authored Oct 10, 2024
2 parents 4cd5131 + 065a59c commit 4944c7d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public List<? extends CodeAction> getCodeActions(JavaCodeActionContext context,
if (type instanceof PsiClass) {
PsiClass typeDeclaration = (PsiClass) type;
String typeName = typeDeclaration.getQualifiedName();
if (typeName == null || typeName.isBlank()) {
continue;
}

Map<String, Object> extendedData = new HashMap<>();
extendedData.put(TYPE_NAME_KEY, typeName);
Expand Down

0 comments on commit 4944c7d

Please sign in to comment.