From bbfe7d34e5ce633f8793a105dcbfe7e8cef04de5 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Wed, 1 Jun 2005 16:10:58 +0000 Subject: [PATCH] Bug 289068 ASSERTION: WriteToBuffer called with count of zero: 'count', file r:/mozilla/netwerk/cache/src/nsDiskCacheStreams.cpp, line 710 r=jst sr=jst a=shaver --- content/html/document/src/nsHTMLDocument.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/html/document/src/nsHTMLDocument.cpp b/content/html/document/src/nsHTMLDocument.cpp index a28af48e2d7c..e125a3a8c3e9 100644 --- a/content/html/document/src/nsHTMLDocument.cpp +++ b/content/html/document/src/nsHTMLDocument.cpp @@ -2171,7 +2171,9 @@ nsHTMLDocument::WriteCommon(const nsAString& aText, // Save the data in cache if (mWyciwygChannel) { - mWyciwygChannel->WriteToCacheEntry(aText); + if (!aText.IsEmpty()) { + mWyciwygChannel->WriteToCacheEntry(aText); + } if (aNewlineTerminate) { mWyciwygChannel->WriteToCacheEntry(new_line);