diff --git a/layout/generic/nsObjectFrame.cpp b/layout/generic/nsObjectFrame.cpp index bb8c70215ea7..c126448f8767 100644 --- a/layout/generic/nsObjectFrame.cpp +++ b/layout/generic/nsObjectFrame.cpp @@ -1438,7 +1438,8 @@ nsObjectFrame::HandleChild(nsPresContext* aPresContext, PRBool nsObjectFrame::IsFocusable(PRInt32 *aTabIndex, PRBool aWithMouse) { - *aTabIndex = -1; + if (aTabIndex) + *aTabIndex = -1; if (IsBroken()) { // Inner anchor for "click to install plugin" is focusable, // but not the object frame itself