diff options
| author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-15 17:44:32 +0000 | 
|---|---|---|
| committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-15 17:44:32 +0000 | 
| commit | f763033db29a19bd58cbb2c595c9a76096888211 (patch) | |
| tree | 111367ab7e969d5690726dbdf508ecd3abdb0f77 /indra/newview | |
| parent | be03975a94523ad60daa9c591fce8f901ad56b98 (diff) | |
CID-87
Checker: FORWARD_NULL
Function: LLLocationInputCtrl::refreshLocation()
File: /indra/newview/lllocationinputctrl.cpp
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/lllocationinputctrl.cpp | 11 | 
1 files changed, 7 insertions, 4 deletions
| diff --git a/indra/newview/lllocationinputctrl.cpp b/indra/newview/lllocationinputctrl.cpp index f48c96190f..c66d067779 100644 --- a/indra/newview/lllocationinputctrl.cpp +++ b/indra/newview/lllocationinputctrl.cpp @@ -833,10 +833,13 @@ void LLLocationInputCtrl::refreshParcelIcons()  		mDamageText->setVisible(false);  	} -	S32 left_pad, right_pad; -	mTextEntry->getTextPadding(&left_pad, &right_pad); -	right_pad = mTextEntry->getRect().mRight - x; -	mTextEntry->setTextPadding(left_pad, right_pad); +	if (mTextEntry) +	{ +		S32 left_pad, right_pad; +		mTextEntry->getTextPadding(&left_pad, &right_pad); +		right_pad = mTextEntry->getRect().mRight - x; +		mTextEntry->setTextPadding(left_pad, right_pad); +	}  }  void LLLocationInputCtrl::refreshHealth() | 
