Skip to content

Commit

Permalink
return nil instead of NewNullValue()
Browse files Browse the repository at this point in the history
  • Loading branch information
reugn committed Nov 28, 2024
1 parent 085b911 commit f9b52d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion value.go
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ func bytesToKeyValue(pType int, buf []byte, offset int, length int) (Value, Erro
return ListValue(v), nil

case ParticleType.NULL:
return NewNullValue(), nil
return nil, nil

default:
return nil, newError(types.PARSE_ERROR, fmt.Sprintf("ParticleType %d not recognized. Please file a github issue.", pType))
Expand Down

0 comments on commit f9b52d7

Please sign in to comment.