Bug 537419. mContent might be null here. r=dbaron

This commit is contained in:
Boris Zbarsky 2009-12-31 20:37:57 -05:00
Родитель 43c26fbb60
Коммит 3f71dc9eea
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -467,7 +467,8 @@ public:
{
if (mSelection && mPresContext)
{
nsWeakFrame frame = mPresContext->GetPrimaryFrameFor(mContent);
nsWeakFrame frame =
mContent ? mPresContext->GetPrimaryFrameFor(mContent) : nsnull;
mContent = nsnull;
mFrameSelection->HandleDrag(frame, mPoint);