Coverity analysis defect 175290: Dereference of potentially null field

XMLWordPrintableJSON

    • Query Execution
    • ALL
    • QE 2025-09-15
    • 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/exec/sbe/stages/scan.cpp:368: NULL_FIELD 175290 Reading field "_minRecordIdAccessor", which is expected to possibly be "nullptr" in "this->_minRecordIdAccessor" (checked 4 out of 5 times).
      /src/mongo/db/exec/sbe/stages/scan.cpp:368: NULL_FIELD 175290 Passing null pointer "this->_minRecordIdAccessor" to "getViewOfValue", which dereferences it. (The dereference happens because this is a virtual function call.)

            Assignee:
            Jan Steemann
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: