Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException using Select.from #287

Closed
black-snow opened this issue Mar 27, 2015 · 2 comments
Closed

NullPointerException using Select.from #287

black-snow opened this issue Mar 27, 2015 · 2 comments
Milestone

Comments

@black-snow
Copy link

I just received a NullPointerException while building the Query via Select.from:

Select.from(MyModel.class).where(Condition.prop("myprop").notEq(null)).orderBy("ID").list();

Did I get the usage wrong from the (poor) docs? What's the correct equivalent to WHERE prop <> null?

@whoshuu
Copy link
Collaborator

whoshuu commented Mar 28, 2015

Null isn't supported in queries yet. There's a pending pull request that'll go into 1.4.0, #227. I'll close this issue when #227 gets into master.

@whoshuu whoshuu added this to the 1.4.0 milestone Mar 28, 2015
@black-snow
Copy link
Author

aight, thanks for the reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants