Skip to content

Commit a41e99a

Browse files
authored
Fix the issue of cross-namespace lookup for SQL tags in the include tag (#552)
1 parent 22edba9 commit a41e99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (m *Mappers) setMapper(key string, mapper *Mapper) error {
9191
}
9292

9393
func (m *Mappers) GetMapperByNamespace(namespace string) (*Mapper, bool) {
94-
if m.mappers == nil {
94+
if m == nil || m.mappers == nil {
9595
return nil, false
9696
}
9797
return m.mappers.Get(namespace)

0 commit comments

Comments
 (0)