|
@@ -150,6 +150,9 @@ func (cfg *frozenConfig) TypeOf(obj interface{}) Type {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (cfg *frozenConfig) Type2(type1 reflect.Type) Type {
|
|
func (cfg *frozenConfig) Type2(type1 reflect.Type) Type {
|
|
|
|
|
+ if type1 == nil {
|
|
|
|
|
+ return nil
|
|
|
|
|
+ }
|
|
|
cacheKey := uintptr(unpackEFace(type1).data)
|
|
cacheKey := uintptr(unpackEFace(type1).data)
|
|
|
typeObj, found := cfg.cache.Load(cacheKey)
|
|
typeObj, found := cfg.cache.Load(cacheKey)
|
|
|
if found {
|
|
if found {
|