Coverity analysis defect 175229: Dereference of potentially null field

XMLWordPrintableJSON

    • Query Optimization
    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Dereference of potentially null field

      If the field is actually null, then a null pointer dereference will occur. Field, which is statistically checked against null, is dereferenced.
      /src/mongo/db/query/planner_analysis.cpp:408: NULL_FIELD 175229 Reading field "filter", which is expected to possibly be "nullptr" in "origFetchNode->filter" (checked 39 out of 41 times).
      /src/mongo/db/query/planner_analysis.cpp:409: NULL_FIELD 175229 Attempting to access the managed object of an empty smart pointer "origFetchNode->filter".

            Assignee:
            Andi Wang
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: