Bug 1245310 - Restore null check in GetFocusedNode(). r=khuey

This commit is contained in:
Jorg K 2016-02-02 15:42:00 +01:00
parent bf88b025d9
commit 415a8ffdf1

View File

@ -125,7 +125,7 @@ nsIContent*
nsPIDOMWindow<T>::GetFocusedNode() const
{
if (IsOuterWindow()) {
return mInnerWindow->GetFocusedNode();
return mInnerWindow ? mInnerWindow->GetFocusedNode() : nullptr;
}
return mFocusedNode;