Add null parsing
This commit is contained in:
parent
7311b761b2
commit
a526753112
1 changed files with 2 additions and 0 deletions
|
@ -106,6 +106,8 @@ func read_next(data *[]byte, byte_idx *uint32) (interface{}, error) {
|
||||||
next_obj, err = read_string(data, byte_idx)
|
next_obj, err = read_string(data, byte_idx)
|
||||||
case 3:
|
case 3:
|
||||||
next_obj, err = read_object(data, byte_idx)
|
next_obj, err = read_object(data, byte_idx)
|
||||||
|
case 5:
|
||||||
|
return nil, nil
|
||||||
default:
|
default:
|
||||||
return nil, errors.New("Unhandled data type")
|
return nil, errors.New("Unhandled data type")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue