Skip to content

Commit

Permalink
🐛 fix(main): fixed idea throws exception
Browse files Browse the repository at this point in the history
  • Loading branch information
imyuyu committed Jun 11, 2024
1 parent 4cc1b83 commit d4cdef6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class SQLToyFindUsagesHandlerFactory: FindUsagesHandlerFactory() {

override fun canFindUsages(element: PsiElement): Boolean {
val module = ModuleUtilCore.findModuleForPsiElement(element);
val containingFile: VirtualFile = element.containingFile.virtualFile
val containingFile: VirtualFile = element.containingFile?.virtualFile ?: return false
return XmlUtil.isSqltoyXml(containingFile);
}

Expand Down

0 comments on commit d4cdef6

Please sign in to comment.