diff --git a/gorilla-server/main.go b/gorilla-server/main.go index 2a20d21..e43c3db 100644 --- a/gorilla-server/main.go +++ b/gorilla-server/main.go @@ -226,6 +226,14 @@ func main() { func processGetEvent(ge *pb.Event) *pb.Event { log.Println("processGetEvent() START") + if (ge.Account == nil) { + log.Println("processGetEvent() ERROR ge.Account = nil") + log.Println("processGetEvent() ERROR ge.Account = nil") + log.Println("processGetEvent() ERROR ge.Account = nil") + e := pb.MakeFailResponse() + e.Comment = "Account = nil" + return e + } log.Println("processGetEvent() ge.Account.Token =", ge.Account.Token) log.Println("processGetEvent() ge.Account.Username =", ge.Account.Username) log.Println("processGetEvent() ge.Account.Email =", ge.Account.Email)