Skip to content

Commit 113c72f

Browse files
committed
Checks
1 parent 3bc817d commit 113c72f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bind/package.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ func (p *Package) getDoc(parent string, o types.Object) string {
122122
}
123123
// Check for typed consts
124124
scopeName := p.pkg.Scope().Lookup(n)
125+
if scopeName == nil {
126+
return ""
127+
}
125128
constType := scopeName.Type()
126129
if constType == nil {
127130
return ""

0 commit comments

Comments
 (0)