DBCollection.setObjectClass(null) throws NullPointerException

XMLWordPrintableJSON

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

      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:
            Jeffrey Yemin
            Reporter:
            Eric Sommer
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: