Coverity analysis defect 72910: Dereference after null check

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Integration 10 (02/22/16)
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Pointer is checked against null but then dereferenced anyway

      Defect 72910 (STATIC_C)
      Checker FORWARD_NULL (subcategory none)
      File: /src/mongo/db/cloner.cpp
      Function mongo::Cloner::Fun::operator ()(mongo::DBClientCursorBatchIterator &)
      /src/mongo/db/cloner.cpp, line: 138
      Comparing "collection" to null implies that "collection" might be null.

                  if (!collection) {
      

            Assignee:
            Kyle Suarez (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: