Skip to content

Commit

Permalink
fix: is some super class no in project will be crash
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 18, 2023
1 parent dc5289d commit d203734
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ object JavaRelatedContext {
}

private fun findSuperClasses(psiClass: PsiClass): List<PsiClass> {
if (!isProjectContent(psiClass)) return emptyList()
return generateSequence(psiClass) { it.superClass }.toList()
}

Expand Down

0 comments on commit d203734

Please sign in to comment.