diff --git a/htmlparser/src/nsHTMLContentSinkStream.cpp b/htmlparser/src/nsHTMLContentSinkStream.cpp index 38cad0bcc224..6c71a7290d6d 100644 --- a/htmlparser/src/nsHTMLContentSinkStream.cpp +++ b/htmlparser/src/nsHTMLContentSinkStream.cpp @@ -523,7 +523,7 @@ void nsHTMLContentSinkStream::EnsureBufferSize(PRInt32 aNewSize) void nsHTMLContentSinkStream::EncodeToBuffer(const nsString& aSrc) { - NS_ASSERTION(mUnicodeEncoder != nsnull,"The unicode encoder needs to be initialized"); + NS_VERIFY(mUnicodeEncoder != nsnull,"The unicode encoder needs to be initialized"); if (mUnicodeEncoder == nsnull) return; diff --git a/parser/htmlparser/src/nsHTMLContentSinkStream.cpp b/parser/htmlparser/src/nsHTMLContentSinkStream.cpp index 38cad0bcc224..6c71a7290d6d 100644 --- a/parser/htmlparser/src/nsHTMLContentSinkStream.cpp +++ b/parser/htmlparser/src/nsHTMLContentSinkStream.cpp @@ -523,7 +523,7 @@ void nsHTMLContentSinkStream::EnsureBufferSize(PRInt32 aNewSize) void nsHTMLContentSinkStream::EncodeToBuffer(const nsString& aSrc) { - NS_ASSERTION(mUnicodeEncoder != nsnull,"The unicode encoder needs to be initialized"); + NS_VERIFY(mUnicodeEncoder != nsnull,"The unicode encoder needs to be initialized"); if (mUnicodeEncoder == nsnull) return;