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

DBCollection.setObjectClass(null) throws NullPointerException

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.4
    • Affects Version/s: 3.0.3
    • Component/s: Codecs

      Calling setObjectClass() with value null causes NullPointerException to be thrown.

      java.lang.NullPointerException
      	at java.lang.Class.isAssignableFrom(Native Method)
      	at com.mongodb.DBCollectionObjectFactory.isReflectionDBObject(DBCollectionObjectFactory.java:86)
      	at com.mongodb.DBCollectionObjectFactory.update(DBCollectionObjectFactory.java:61)
      	at com.mongodb.DBCollection.setObjectClass(DBCollection.java:1888)
      

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            eric.sommer@mongodb.com Eric Sommer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: