fix dereferencing error on slashdot.org

git-svn-id: svn://10.0.0.236/trunk@48130 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
alecf%netscape.com
1999-09-18 00:48:51 +00:00
parent ceb23b8bd4
commit ee585f6ea5
2 changed files with 4 additions and 2 deletions

View File

@@ -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) {