sai-pullabhotla / catatumbo

JPA like Persistence Framework for Google Cloud Datastore and Cloud Firestore
http://catatumbo.io
Apache License 2.0
51 stars 20 forks source link

Avoid throwing NPE during argument check #195

Closed sai-pullabhotla closed 6 years ago

sai-pullabhotla commented 6 years ago

There are a handful of places where method parameter is checked for null, and if so, throwing an NPE. Change these to throw IllegalArgumentException.