Skip to content

Commit a71256f

Browse files
authored
fix: panic runtime error: invalid memory address or nil pointer dereference (#27)
1 parent 2d9a013 commit a71256f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testmap.go

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ func appendTestMap(subtests []*ssa.Function, instr ssa.Instruction) []*ssa.Funct
4949
}
5050

5151
ssaCall := call.Value()
52+
if ssaCall == nil {
53+
return subtests
54+
}
55+
5256
for _, arg := range ssaCall.Call.Args {
5357
switch arg := arg.(type) {
5458
case *ssa.Function:

0 commit comments

Comments
 (0)