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 22734c3 commit 05b0d88Copy full SHA for 05b0d88
src/main/kotlin/org/domaframework/doma/intellij/inspection/sql/inspector/SqlBindVariableValidInspector.kt
@@ -84,11 +84,13 @@ class SqlBindVariableValidInspector : LocalInspectionTool() {
84
END,
85
}
86
87
+ override fun runForWholeFile(): Boolean = true
88
+
89
override fun buildVisitor(
90
holder: ProblemsHolder,
91
isOnTheFly: Boolean,
92
): SqlVisitor {
- val topElm = holder.file.firstChild
93
+ val topElm = holder.file.firstChild ?: return object : SqlVisitor() {}
94
val directiveBlocks =
95
topElm.nextLeafs
96
.filter { elm ->
0 commit comments