Currently the MongoClient null checks the list but not the values in the list. This can lead to a NPE.