Add a null check.

git-svn-id: svn://10.0.0.236/trunk@69473 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sfraser%netscape.com
2000-05-12 23:11:04 +00:00
parent be376b8fd8
commit 3c0227b801
2 changed files with 4 additions and 2 deletions

View File

@@ -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;