зеркало из https://github.com/mozilla/gecko-dev.git
bug 136746 - check for null pointer if a line is empty. sr=waterson, r=alexsavulov
This commit is contained in:
Родитель
44d76f3678
Коммит
0ac20fe840
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче