diff --git a/js/src/jsgc.cpp b/js/src/jsgc.cpp index c849bacc8c..9421225827 100644 --- a/js/src/jsgc.cpp +++ b/js/src/jsgc.cpp @@ -7138,7 +7138,7 @@ JS_PUBLIC_API(bool) js::gc::detail::CellIsMarkedGrayIfKnown(const Cell* cell) { MOZ_ASSERT(cell); - if (!cell->isTenured()) + if (!cell || !cell->isTenured()) return false; // We ignore the gray marking state of cells and return false in two cases: