From 3c0227b80182dbb2e2530b44e3551e9b2e5a8ea8 Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Fri, 12 May 2000 23:11:04 +0000 Subject: [PATCH] Add a null check. git-svn-id: svn://10.0.0.236/trunk@69473 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/forms/nsFileControlFrame.cpp | 3 ++- mozilla/layout/html/forms/src/nsFileControlFrame.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/forms/nsFileControlFrame.cpp b/mozilla/layout/forms/nsFileControlFrame.cpp index 98f226ad6e1..afdbab4a884 100644 --- a/mozilla/layout/forms/nsFileControlFrame.cpp +++ b/mozilla/layout/forms/nsFileControlFrame.cpp @@ -611,7 +611,8 @@ NS_IMETHODIMP nsFileControlFrame::GetProperty(nsIAtom* aName, nsString& aValue) #ifndef DEBUG_NEWFRAME if (nsHTMLAtoms::value == aName) { - mTextFrame->GetTextControlFrameState(aValue); + if (mTextFrame) + mTextFrame->GetTextControlFrameState(aValue); } #endif return NS_OK; diff --git a/mozilla/layout/html/forms/src/nsFileControlFrame.cpp b/mozilla/layout/html/forms/src/nsFileControlFrame.cpp index 98f226ad6e1..afdbab4a884 100644 --- a/mozilla/layout/html/forms/src/nsFileControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsFileControlFrame.cpp @@ -611,7 +611,8 @@ NS_IMETHODIMP nsFileControlFrame::GetProperty(nsIAtom* aName, nsString& aValue) #ifndef DEBUG_NEWFRAME if (nsHTMLAtoms::value == aName) { - mTextFrame->GetTextControlFrameState(aValue); + if (mTextFrame) + mTextFrame->GetTextControlFrameState(aValue); } #endif return NS_OK;