The following module will cause a nil pointer dereference at
|
node.values.Add(rule.Head.Value) |
in the
BuildRuleIndices compiler stage:
package test
import future.keywords
p.q contains "foo"
p[q] := r if {
q := "bar"
r := "baz"
}
Omitting the if keyword causes the issue to not be triggered.
The following module will cause a nil pointer dereference at
opa/ast/index.go
Line 498 in 35b07b5
BuildRuleIndicescompiler stage:Omitting the
ifkeyword causes the issue to not be triggered.