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

Coverity analysis defect 116580: Dereference null return value

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal
    • None

    Description

      Dereference null return value

      If the function actually returns a null value, a NullPointerException will be thrown. Return value of function which returns null is dereferenced without checking
      /bson/src/main/org/bson/codecs/pojo/PojoCodecImpl.java:102: NULL_RETURNS 116580 Assigning: "instanceCreator" = "null" return value from "getInstanceCreator".
      /bson/src/main/org/bson/codecs/pojo/PojoCodecImpl.java:104: NULL_RETURNS 116580 Calling a method on null object "instanceCreator".

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: