{"action":"opened","issue":{"url":"https://api.github.com/repos/dgraph-io/dgraph/issues/420","repository_url":"https://api.github.com/repos/dgraph-io/dgraph","labels_url":"https://api.github.com/repos/dgraph-io/dgraph/issues/420/labels{/name}","comments_url":"https://api.github.com/repos/dgraph-io/dgraph/issues/420/comments","events_url":"https://api.github.com/repos/dgraph-io/dgraph/issues/420/events","html_url":"https://github.com/dgraph-io/dgraph/issues/420","id":197325319,"number":420,"title":"Panic when passing xid without underscores","user":{"login":"manishrjain","id":1782324,"avatar_url":"https://avatars.githubusercontent.com/u/1782324?v=3","gravatar_id":"","url":"https://api.github.com/users/manishrjain","html_url":"https://github.com/manishrjain","followers_url":"https://api.github.com/users/manishrjain/followers","following_url":"https://api.github.com/users/manishrjain/following{/other_user}","gists_url":"https://api.github.com/users/manishrjain/gists{/gist_id}","starred_url":"https://api.github.com/users/manishrjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manishrjain/subscriptions","organizations_url":"https://api.github.com/users/manishrjain/orgs","repos_url":"https://api.github.com/users/manishrjain/repos","events_url":"https://api.github.com/users/manishrjain/events{/privacy}","received_events_url":"https://api.github.com/users/manishrjain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-23T07:36:35Z","updated_at":"2016-12-23T07:36:35Z","closed_at":null,"body":"```\r\n$ curl localhost:8080/query -XPOST -d '{me(xid: base.americancomedy.movie.runtime) {type.object.name.en}}'\r\n\r\n2016/12/23 18:31:52 server.go:2317: http: panic serving [::1]:54366: runtime error: invalid memory address or nil pointer dereference\r\ngoroutine 127843 [running]:\r\nnet/http.(*conn).serve.func1(0xc517970000)\r\n\t/usr/lib/go/src/net/http/server.go:1491 +0x12a\r\npanic(0x9b1000, 0xc4200120f0)\r\n\t/usr/lib/go/src/runtime/panic.go:458 +0x243\r\ngithub.com/dgraph-io/dgraph/gql.getRoot(0xc441630230, 0xc45e2a8538, 0x45f020, 0xc45e2a84e0)\r\n\t/home/mrjn/go/src/github.com/dgraph-io/dgraph/gql/parser.go:843 +0x637\r\ngithub.com/dgraph-io/dgraph/gql.getQuery(0xc441630230, 0xc45e2a84e0, 0xc4203238f0, 0xc420323901)\r\n\t/home/mrjn/go/src/github.com/dgraph-io/dgraph/gql/parser.go:398 +0x2f\r\ngithub.com/dgraph-io/dgraph/gql.Parse(0xc4416301e0, 0x42, 0xa58763, 0x12, 0xc47fc28210, 0x1)\r\n\t/home/mrjn/go/src/github.com/dgraph-io/dgraph/gql/parser.go:332 +0x5de\r\nmain.queryHandler(0xf1ff60, 0xc4c69b00d0, 0xc52dcb0690)\r\n\t/home/mrjn/go/src/github.com/dgraph-io/dgraph/cmd/dgraph/main.go:398 +0x41f\r\nnet/http.HandlerFunc.ServeHTTP(0xaa0528, 0xf1ff60, 0xc4c69b00d0, 0xc52dcb0690)\r\n\t/usr/lib/go/src/net/http/server.go:1726 +0x44\r\nnet/http.(*ServeMux).ServeHTTP(0xf44f60, 0xf1ff60, 0xc4c69b00d0, 0xc52dcb0690)\r\n\t/usr/lib/go/src/net/http/server.go:2022 +0x7f\r\nnet/http.serverHandler.ServeHTTP(0xc420310000, 0xf1ff60, 0xc4c69b00d0, 0xc52dcb0690)\r\n\t/usr/lib/go/src/net/http/server.go:2202 +0x7d\r\nnet/http.(*conn).serve(0xc517970000, 0xf20a60, 0xc45ce93e40)\r\n\t/usr/lib/go/src/net/http/server.go:1579 +0x4b7\r\ncreated by net/http.(*Server).Serve\r\n\t/usr/lib/go/src/net/http/server.go:2293 +0x44d\r\n\r\n```"}}
{"actor":{"display_login":"manishrjain"}}