зеркало из https://github.com/mozilla/pjs.git
Bug 620283 - crash [@ nsHTMLEditor::RemoveStyleInside] if !aAttribute; r=ehsan
Adds a null check to avoid dereferencing a null pointer. --HG-- extra : rebase_source : ba8bfcabbc2f17b0b0cea1d90dbed54a8471bad9
This commit is contained in:
Родитель
2d2999d8aa
Коммит
95fa86a1c7
|
@ -763,7 +763,7 @@ nsresult nsHTMLEditor::RemoveStyleInside(nsIDOMNode *aNode,
|
|||
}
|
||||
if ( aProperty == nsEditProperty::font && // or node is big or small and we are setting font size
|
||||
(nsHTMLEditUtils::IsBig(aNode) || nsHTMLEditUtils::IsSmall(aNode)) &&
|
||||
aAttribute->LowerCaseEqualsLiteral("size"))
|
||||
aAttribute && aAttribute->LowerCaseEqualsLiteral("size"))
|
||||
{
|
||||
res = RemoveContainer(aNode); // if we are setting font size, remove any nested bigs and smalls
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче