Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2322

A null filter passed to DBCollection.find throws an exception when it used to be alled

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.0-rc1, 3.4.0
    • Affects Version/s: None
    • Component/s: API
    • Labels:
      None

      DBCollection.find(query) requires a non-null query now.

      https://github.com/mongodb/mongo-java-driver/commit/12f7865e76bbdf2ba767063eac5f85009e3a5148#diff-63b23e37c4829b04dae9e12527bc3e58R106

      Repro:

              MongoClient c = new MongoClient();
              c.getDB("test").getCollection("x").find(null);
      

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            steve.briskin Steve Briskin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: