зеркало из https://github.com/mozilla/pjs.git
bug 136746 - check for null pointer if a line is empty. sr=waterson, r=alexsavulov
This commit is contained in:
Родитель
f228b875f1
Коммит
890e7c9345
|
@ -3113,6 +3113,10 @@ nsBlockFrame::ReflowBlockFrame(nsBlockReflowState& aState,
|
|||
nsresult rv = NS_OK;
|
||||
|
||||
nsIFrame* frame = aLine->mFirstChild;
|
||||
if (!frame) {
|
||||
NS_ASSERTION(PR_FALSE, "program error - unexpected empty line");
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
|
||||
// Prepare the block reflow engine
|
||||
const nsStyleDisplay* display;
|
||||
|
|
|
@ -3113,6 +3113,10 @@ nsBlockFrame::ReflowBlockFrame(nsBlockReflowState& aState,
|
|||
nsresult rv = NS_OK;
|
||||
|
||||
nsIFrame* frame = aLine->mFirstChild;
|
||||
if (!frame) {
|
||||
NS_ASSERTION(PR_FALSE, "program error - unexpected empty line");
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
|
||||
// Prepare the block reflow engine
|
||||
const nsStyleDisplay* display;
|
||||
|
|
Загрузка…
Ссылка в новой задаче