| Index: go/src/infra/gae/libs/gae/helper/datastore_key.go
|
| diff --git a/go/src/infra/gae/libs/gae/helper/datastore_key.go b/go/src/infra/gae/libs/gae/helper/datastore_key.go
|
| index 21734e1e7a0c891bf6930dd7e6d3f74adca6e7a9..35d48a56ea625b5822ca3f766db242cfcd63fc12 100644
|
| --- a/go/src/infra/gae/libs/gae/helper/datastore_key.go
|
| +++ b/go/src/infra/gae/libs/gae/helper/datastore_key.go
|
| @@ -116,7 +116,7 @@ func DSKeyUnmarshalJSON(buf []byte) (appID, namespace string, toks []gae.DSKeyTo
|
|
|
| // DSKeyIncomplete returns true iff k doesn't have an id yet.
|
| func DSKeyIncomplete(k gae.DSKey) bool {
|
| - return k.StringID() == "" && k.IntID() == 0
|
| + return k != nil && k.StringID() == "" && k.IntID() == 0
|
| }
|
|
|
| // DSKeyValid determines if a key is valid, according to a couple rules:
|
|
|