We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2a8965 commit 47ec38cCopy full SHA for 47ec38c
1 file changed
java/ql/src/Likely Bugs/Nullness/NullMaybe.ql
@@ -22,7 +22,7 @@ where
22
nullDeref(var, access, msg, reason) and
23
// Exclude definite nulls here, as these are covered by `NullAlways.ql`.
24
not alwaysNullDeref(var, access) and
25
- // Exclude operands of `!!` in Kotlin, as `!!` means explicit opt out by the user.
26
- not access.getParent() instanceof NotNullExpr
+ // Kotlin enforces this already:
+ not access.getLocation().getFile().isKotlinSourceFile()
27
select access, "Variable $@ may be null here " + msg + ".", var.getVariable(),
28
var.getVariable().getName(), reason, "this"
0 commit comments