diff --git a/layout/xul/tree/nsTreeColumns.cpp b/layout/xul/tree/nsTreeColumns.cpp index 209a2582b0d9..8ec3376b92a9 100644 --- a/layout/xul/tree/nsTreeColumns.cpp +++ b/layout/xul/tree/nsTreeColumns.cpp @@ -433,7 +433,7 @@ void nsTreeColumns::EnsureColumns() { if (!colFrame) return; colFrame = colFrame->GetParent(); - if (!colFrame) return; + if (!colFrame || !colFrame->GetContent()) return; nsTreeColumn* currCol = nullptr;