{"action":"opened","issue":{"url":"https://api.github.com/repos/Wolfgang-Schuetzelhofer/jcypher/issues/39","repository_url":"https://api.github.com/repos/Wolfgang-Schuetzelhofer/jcypher","labels_url":"https://api.github.com/repos/Wolfgang-Schuetzelhofer/jcypher/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/Wolfgang-Schuetzelhofer/jcypher/issues/39/comments","events_url":"https://api.github.com/repos/Wolfgang-Schuetzelhofer/jcypher/issues/39/events","html_url":"https://github.com/Wolfgang-Schuetzelhofer/jcypher/issues/39","id":306200063,"number":39,"title":"NullPointerException at PredicateFunction.getType()","user":{"login":"DaviPacheco","id":15767435,"avatar_url":"https://avatars2.githubusercontent.com/u/15767435?v=4","gravatar_id":"","url":"https://api.github.com/users/DaviPacheco","html_url":"https://github.com/DaviPacheco","followers_url":"https://api.github.com/users/DaviPacheco/followers","following_url":"https://api.github.com/users/DaviPacheco/following{/other_user}","gists_url":"https://api.github.com/users/DaviPacheco/gists{/gist_id}","starred_url":"https://api.github.com/users/DaviPacheco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaviPacheco/subscriptions","organizations_url":"https://api.github.com/users/DaviPacheco/orgs","repos_url":"https://api.github.com/users/DaviPacheco/repos","events_url":"https://api.github.com/users/DaviPacheco/events{/privacy}","received_events_url":"https://api.github.com/users/DaviPacheco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-17T23:47:17Z","updated_at":"2018-03-17T23:47:17Z","closed_at":null,"author_association":"NONE","body":"Hi Wolfgang. \r\n\r\nSorry to return here, but I tried everything that I could.\r\n\r\nI'm using the DSL query to compare my object properties, and i'm getting a NullPointerException at iot.jcypher.query.ast.predicate.PredicateFunction.getType()\r\n\r\nHere's the groovy code that i'm using to feed a Concatenator inside a loop:\r\n\r\n`\r\nprivate Concatenator clausula\r\n\r\nvoid ONDE(Concatenator funcaoPredicativa) {\r\n\r\n        clausula = clausula != null ?\r\n                clausula.AND().holdsTrue(funcaoPredicativa) :\r\n                funcaoPredicativa\r\n      }\r\n`\r\nAnd here is where it's used:\r\n\r\n`\r\nprops.each {  String chave, Object valor ->\r\n\r\n                def v = valor instanceof Var ? valor.persistente : valor\r\n\r\n                if (v) criterio.ONDE(WHERE.valueOf(origem.property(chave)).EQUALS(v))\r\n\r\n            }\r\n`\r\nthe StackTrace: \r\n\r\njava.lang.NullPointerException\r\n\tat iot.jcypher.query.ast.predicate.PredicateFunction.getType(PredicateFunction.java:28)\r\n\tat iot.jcypher.query.writer.CypherWriter$CollectionCypherWriter.toCypherExpression(CypherWriter.java:462)\r\n\tat iot.jcypher.query.writer.CypherWriter$CollectionCypherWriter.access$1400(CypherWriter.java:452)\r\n\tat iot.jcypher.query.writer.CypherWriter$PredicateCypherWriter.toCypherExpression(CypherWriter.java:654)\r\n\tat iot.jcypher.query.writer.CypherWriter$PredicateCypherWriter.toCypherExpression(CypherWriter.java:638)\r\n\tat iot.jcypher.query.writer.CypherWriter$PredicateCypherWriter.toCypherExpression(CypherWriter.java:628)\r\n\tat iot.jcypher.query.writer.CypherWriter$PredicateCypherWriter.access$500(CypherWriter.java:620)\r\n\tat iot.jcypher.query.writer.CypherWriter.toCypherExpression(CypherWriter.java:247)\r\n\tat iot.jcypher.query.writer.CypherWriter.toCypherExpression(CypherWriter.java:139)\r\n\tat iot.jcypher.query.writer.CypherWriter.toCypherExpression(CypherWriter.java:132)\r\n\tat iot.jcypher.query.writer.CypherWriter.toCypherExpression(CypherWriter.java:126)\r\n\r\nI'm using the 3.9.0 version.\r\nThanks in advance, your library is one of the pillars of my college project.\r\n\r\n- Davi Pacheco\r\n\r\n\r\n"}}
{"actor":{"display_login":"DaviPacheco"}}