DescriptionEncode nil datastore keys as PTNull.
This fixes a panic in serialize when it is asked to serialize a nil
*ds.Key, causing it to dereference its fields. Instead, a *ds.Key is
serialized as a PTNull entry like datastore.
Add some tests to assert proper conversion and serialization.
BUG=
Committed: https://github.com/luci/gae/commit/273b8ea01f0d03bd19cd4c14a9b1ba790d125306
Patch Set 1 #
Messages
Total messages: 7 (3 generated)
|