Coverity analysis defect 176940: Dereference of potentially null field

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • ALL
    • v8.2
    • 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/pipeline/document_source_list_sampled_queries.cpp:103: NULL_FIELD 176940 Reading field "_execPipeline", which is expected to possibly be "nullptr" in "this->_execPipeline" (checked 4 out of 5 times).
      /src/mongo/db/pipeline/document_source_list_sampled_queries.cpp:103: NULL_FIELD 176940 Attempting to access the managed object of an empty smart pointer "this->_execPipeline".

            Assignee:
            Chi-I Huang
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: