Skip to content

Commit

Permalink
Check for null or empty class name in generate OpenAPI annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Gooderham <[email protected]>
  • Loading branch information
turkeylurkey committed Oct 9, 2024
1 parent cc45ff0 commit 065a59c
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 065a59c

Please sign in to comment.