mapping.size = size to fix dereference panic

This commit is contained in:
Haris Khan
2024-11-26 20:30:31 -05:00
parent c68acf848e
commit a0a8704c6c

View File

@ -173,6 +173,7 @@ func ReadMapping(bytes []byte) (mapping Mapping, remainder []byte, err []error)
log.WithError(e).Error("Failed to read Mapping size")
err = append(err, e)
}
mapping.size = size
if size.Int() == 0 {
log.Warn("Mapping size is zero")
return