diff --git a/src/main/java/com/redhat/devtools/intellij/lsp4mp4ij/psi/internal/openapi/java/MicroProfileGenerateOpenAPIOperation.java b/src/main/java/com/redhat/devtools/intellij/lsp4mp4ij/psi/internal/openapi/java/MicroProfileGenerateOpenAPIOperation.java index c0745ef5f..133ab762c 100644 --- a/src/main/java/com/redhat/devtools/intellij/lsp4mp4ij/psi/internal/openapi/java/MicroProfileGenerateOpenAPIOperation.java +++ b/src/main/java/com/redhat/devtools/intellij/lsp4mp4ij/psi/internal/openapi/java/MicroProfileGenerateOpenAPIOperation.java @@ -66,6 +66,9 @@ public List getCodeActions(JavaCodeActionContext context, if (type instanceof PsiClass) { PsiClass typeDeclaration = (PsiClass) type; String typeName = typeDeclaration.getQualifiedName(); + if (typeName == null || typeName.isBlank()) { + continue; + } Map extendedData = new HashMap<>(); extendedData.put(TYPE_NAME_KEY, typeName);