| Index: service/datastore/datastore.go
|
| diff --git a/service/datastore/datastore.go b/service/datastore/datastore.go
|
| index cbf30e675992aa1ab67c1142c283cab58e05e8b7..cb5544704617ed998ed12cedc7921151a4e736d8 100644
|
| --- a/service/datastore/datastore.go
|
| +++ b/service/datastore/datastore.go
|
| @@ -32,6 +32,10 @@ func (d *datastoreImpl) DecodeCursor(s string) (Cursor, error) {
|
| }
|
|
|
| func (d *datastoreImpl) Run(q Query, cbIface interface{}) error {
|
| + if cbIface == nil {
|
| + return fmt.Errorf("cannot use nil callback when Running query")
|
| + }
|
| +
|
| // TODO(riannucci): Profile and determine if any of this is causing a real
|
| // slowdown. Could potentially cache reflection stuff by cbType?
|
| cbTyp := reflect.TypeOf(cbIface)
|
|
|