{"action":"opened","issue":{"url":"https://api.github.com/repos/graknlabs/grakn/issues/685","repository_url":"https://api.github.com/repos/graknlabs/grakn","labels_url":"https://api.github.com/repos/graknlabs/grakn/issues/685/labels{/name}","comments_url":"https://api.github.com/repos/graknlabs/grakn/issues/685/comments","events_url":"https://api.github.com/repos/graknlabs/grakn/issues/685/events","html_url":"https://github.com/graknlabs/grakn/issues/685","id":191893623,"number":685,"title":"Null pointer when materialising relation with sub roles","user":{"login":"haikalpribadi","id":567679,"avatar_url":"https://avatars.githubusercontent.com/u/567679?v=3","gravatar_id":"","url":"https://api.github.com/users/haikalpribadi","html_url":"https://github.com/haikalpribadi","followers_url":"https://api.github.com/users/haikalpribadi/followers","following_url":"https://api.github.com/users/haikalpribadi/following{/other_user}","gists_url":"https://api.github.com/users/haikalpribadi/gists{/gist_id}","starred_url":"https://api.github.com/users/haikalpribadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haikalpribadi/subscriptions","organizations_url":"https://api.github.com/users/haikalpribadi/orgs","repos_url":"https://api.github.com/users/haikalpribadi/repos","events_url":"https://api.github.com/users/haikalpribadi/events{/privacy}","received_events_url":"https://api.github.com/users/haikalpribadi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-27T23:24:41Z","updated_at":"2016-11-27T23:24:41Z","closed_at":null,"body":"Reasoner\n\nanother interesting one. `match ($x, $y) isa marriage;` is working, but if I try and match the relation itself: `match $r ($x, $y) isa marriage;` it fails :disappointed:  \r\nthis is with materialisation on. I get this stack trace:\r\n\n\r\n ```\r\n\njava.lang.NullPointerException: null\r\n    at ai.grakn.graql.internal.reasoner.query.AtomicQuery.lambda$null$2(AtomicQuery.java:133)\r\n    at java.util.HashMap$EntrySet.forEach(HashMap.java:1043)\r\n    at ai.grakn.graql.internal.reasoner.query.AtomicQuery.lambda$materialiseComplete$3(AtomicQuery.java:132)\r\n    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)\r\n    at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)\r\n    at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1548)\r\n    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)\r\n    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)\r\n    at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)\r\n    at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)\r\n    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\r\n    at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)\r\n    at ai.grakn.graql.internal.reasoner.query.AtomicQuery.materialiseComplete(AtomicQuery.java:123)\r\n    at ai.grakn.graql.internal.reasoner.query.AtomicQuery.materialise(AtomicQuery.java:176)\r\n    at ai.grakn.graql.internal.reasoner.query.AtomicMatchQuery.lambda$materialise$2(AtomicMatchQuery.java:85)\r\n    at java.lang.Iterable.forEach(Iterable.java:75)\r\n    at ai.grakn.graql.internal.reasoner.query.AtomicMatchQuery.materialise(AtomicMatchQuery.java:78)\r\n    at ai.grakn.graql.Reasoner.answerWM(Reasoner.java:172)\r\n    at ai.grakn.graql.Reasoner.answer(Reasoner.java:243)\r\n    at ai.grakn.graql.Reasoner.resolveAtomicQuery(Reasoner.java:259)\r\n    at ai.grakn.graql.Reasoner.resolveConjunctiveQuery(Reasoner.java:272)\r\n    at ai.grakn.graql.Reasoner.lambda$resolve$8(Reasoner.java:294)\r\n    at java.lang.Iterable.forEach(Iterable.java:75)\r\n    at ai.grakn.graql.Reasoner.resolve(Reasoner.java:292)\r\n    at ai.grakn.graql.Reasoner.resolveToQuery(Reasoner.java:308)\r\n    at ai.grakn.engine.controller.VisualiserController.matchQuery(VisualiserController.java:145)"}}
{"actor":{"display_login":"haikalpribadi"}}