-
Type: Bug
-
Resolution: Duplicate
-
Priority: Unknown
-
None
-
Affects Version/s: 1.13.0
-
Component/s: None
Detailed steps to reproduce the problem?
Call typeEncoderCache.LoadOrStore twice will panic when enc is nil.
enc = v.(ValueEncoder) should be enc, _ = v.(ValueEncoder)
_func (c *typeEncoderCache) LoadOrStore(rt reflect.Type, enc ValueEncoder) ValueEncoder {
if v, loaded := c.cache.LoadOrStore(rt, enc); loaded
return enc
}_
- duplicates
-
GODRIVER-3051 Panic when decoding is done concurrently
- Closed