diff --git a/toolkit/components/places/nsNavHistoryResult.cpp b/toolkit/components/places/nsNavHistoryResult.cpp index 46763ac9c23e..e16ef3069eec 100644 --- a/toolkit/components/places/nsNavHistoryResult.cpp +++ b/toolkit/components/places/nsNavHistoryResult.cpp @@ -61,8 +61,8 @@ #define END_RESULT_BATCH_AND_REFRESH_CONTENTS() \ PR_BEGIN_MACRO \ nsNavHistoryResult* result = GetResult(); \ - NS_ENSURE_STATE(result); \ - if (result->mBatchInProgress) { \ + NS_WARN_IF_FALSE(result, "Working with a non-live-updating Places container"); \ + if (result && result->mBatchInProgress) { \ result->EndBatch(); \ } \ PR_END_MACRO