vineey / archelix-rsql

This library brings the convenience of SQL declarative nature to restful APIs in the form of RSQL but without the danger of sql injection by using a typesafe mapping of allowed field paths defined via integration with querydsl library. Like sql, it supports clauses such as select, filter, pagination and sorting that can easily be represented in http request parameters. It primarily supports JPA model and MongoDB query via Querydsl.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPE during simple filter parsing

ribrewguy opened this issue · comments

commented

I haven't dug into the issue, but when parsing a simple filter principal == 035489f4-d602-46c5-b568-39d1f852b565 I get an NPE:

Caused by: java.lang.NullPointerException
	at com.github.vineey.rql.querydsl.filter.QuerydslRsqlVisitor.visit(QuerydslRsqlVisitor.java:80) ~[rsql-querydsl-filter-2.0.0.RELEASE.jar:?]
	at com.github.vineey.rql.querydsl.filter.QuerydslRsqlVisitor.visit(QuerydslRsqlVisitor.java:37) ~[rsql-querydsl-filter-2.0.0.RELEASE.jar:?]
	at cz.jirutka.rsql.parser.ast.ComparisonNode.accept(ComparisonNode.java:70) ~[rsql-parser-2.1.0.jar:2.1.0]
	at com.github.vineey.rql.querydsl.filter.QuerydslFilterBuilder.visit(QuerydslFilterBuilder.java:34) ~[rsql-querydsl-filter-2.0.0.RELEASE.jar:?]
	at com.github.vineey.rql.querydsl.filter.QuerydslFilterBuilder.visit(QuerydslFilterBuilder.java:31) ~[rsql-querydsl-filter-2.0.0.RELEASE.jar:?]
	at com.github.vineey.rql.filter.parser.DefaultFilterParser.parse(DefaultFilterParser.java:42) ~[rsql-api-filter-2.0.0.RELEASE.jar:?]