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

NPE in PojoCodecProvider

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

      The check for packages.contains(clazz.getPackage().getName()))) can cause an NPE when the clazz is a primitive, e.g. byte[], because those classes have null packages.

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: