We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 434a07a commit 13528f8Copy full SHA for 13528f8
src/main/kotlin/org/domaframework/doma/intellij/common/FileTypeCheck.kt
@@ -79,6 +79,11 @@ fun searchDaoFile(
79
if (projectRootPath.endsWith(SRC_MAIN_PATH)) {
80
return contentRoot.findFileByRelativePath(relativeDaoFilePath)
81
}
82
+
83
+ if (projectRootPath.length > originFilePath.length) {
84
+ return null
85
+ }
86
87
val subProject =
88
originFilePath.substring(projectRootPath.length, originFilePath.indexOf(SRC_MAIN_PATH))
89
return contentRoot
0 commit comments