Coverity analysis defect 116506: Dereference null return value

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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/PojoBuilderHelper.java:121: NULL_RETURNS 116506 "getSuperclass" returns "null" (checked 2 out of 9 times).
      /bson/src/main/org/bson/codecs/pojo/PojoBuilderHelper.java:121: NULL_RETURNS 116506 Assigning: "currentClass" = "null" return value from "getSuperclass".
      /bson/src/main/org/bson/codecs/pojo/PojoBuilderHelper.java:58: NULL_RETURNS 116506 Calling a method on null object "currentClass".

            Assignee:
            Unassigned
            Reporter:
            Coverity Collector User
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: