fix dereferencing error on slashdot.org

This commit is contained in:
alecf%netscape.com 1999-09-18 00:48:51 +00:00
Родитель 26f731cf9c
Коммит d4a731ec92
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -2381,7 +2381,8 @@ nsTextFrame::Reflow(nsIPresContext& aPresContext,
// Setup text transformer to transform this frames text content
PRUnichar wordBuf[WORD_BUF_SIZE];
nsCOMPtr<nsILineBreaker> lb;
doc->GetLineBreaker(getter_AddRefs(lb));
if (doc)
doc->GetLineBreaker(getter_AddRefs(lb));
nsTextTransformer tx(wordBuf, WORD_BUF_SIZE,lb,nsnull);
nsresult rv = tx.Init(this, mContent, startingOffset);
if (NS_OK != rv) {

Просмотреть файл

@ -2381,7 +2381,8 @@ nsTextFrame::Reflow(nsIPresContext& aPresContext,
// Setup text transformer to transform this frames text content
PRUnichar wordBuf[WORD_BUF_SIZE];
nsCOMPtr<nsILineBreaker> lb;
doc->GetLineBreaker(getter_AddRefs(lb));
if (doc)
doc->GetLineBreaker(getter_AddRefs(lb));
nsTextTransformer tx(wordBuf, WORD_BUF_SIZE,lb,nsnull);
nsresult rv = tx.Init(this, mContent, startingOffset);
if (NS_OK != rv) {