diff --git a/htmlparser/src/nsHTMLToTXTSinkStream.cpp b/htmlparser/src/nsHTMLToTXTSinkStream.cpp index 3d6d745a68c3..b0661b4278a3 100644 --- a/htmlparser/src/nsHTMLToTXTSinkStream.cpp +++ b/htmlparser/src/nsHTMLToTXTSinkStream.cpp @@ -473,9 +473,9 @@ void nsHTMLToTXTSinkStream::EnsureBufferSize(PRInt32 aNewSize) void nsHTMLToTXTSinkStream::EncodeToBuffer(const nsString& aSrc) { - NS_ASSERTION(mUnicodeEncoder != nsnull,"The unicode encoder needs to be initialized"); if (mUnicodeEncoder == nsnull) { + NS_WARNING("The unicode encoder needs to be initialized"); char* str = aSrc.ToNewCString(); EnsureBufferSize(aSrc.Length()+1); strcpy(mBuffer, str); diff --git a/parser/htmlparser/src/nsHTMLToTXTSinkStream.cpp b/parser/htmlparser/src/nsHTMLToTXTSinkStream.cpp index 3d6d745a68c3..b0661b4278a3 100644 --- a/parser/htmlparser/src/nsHTMLToTXTSinkStream.cpp +++ b/parser/htmlparser/src/nsHTMLToTXTSinkStream.cpp @@ -473,9 +473,9 @@ void nsHTMLToTXTSinkStream::EnsureBufferSize(PRInt32 aNewSize) void nsHTMLToTXTSinkStream::EncodeToBuffer(const nsString& aSrc) { - NS_ASSERTION(mUnicodeEncoder != nsnull,"The unicode encoder needs to be initialized"); if (mUnicodeEncoder == nsnull) { + NS_WARNING("The unicode encoder needs to be initialized"); char* str = aSrc.ToNewCString(); EnsureBufferSize(aSrc.Length()+1); strcpy(mBuffer, str);