Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
NPE occures in query.clone #592
this can be reproduced doing something like this:
QSomeTable qst = QSomeTable.someTable;
HibernateQuery hq2 = hq.clone(hibernateSession);
I believe the main problem stems from the "and" concatenating what is essentially an empty boolean builder. The null check in BooleanExpression passes because the builder actually exists, but is empty.
added a commit
Dec 11, 2013
one last question on this, It looks like the fix will now also allow null to be passed to the boolean builder constructor, is that correct?
I have a few predicate building functions that return null, and I currently have to do this as a work around: