mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 18:51:28 +00:00
Put in check for null a mOptions and return zero for GetLength
This commit is contained in:
parent
a70b8597f5
commit
a680982ab4
@ -407,9 +407,10 @@ nsHTMLSelectElement::GetLength(PRUint32* aLength)
|
||||
{
|
||||
if (nsnull != mOptions) {
|
||||
Init();
|
||||
return mOptions->GetLength(aLength);
|
||||
}
|
||||
|
||||
return mOptions->GetLength(aLength);
|
||||
*aLength = 0;
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
static PRBool
|
||||
|
@ -407,9 +407,10 @@ nsHTMLSelectElement::GetLength(PRUint32* aLength)
|
||||
{
|
||||
if (nsnull != mOptions) {
|
||||
Init();
|
||||
return mOptions->GetLength(aLength);
|
||||
}
|
||||
|
||||
return mOptions->GetLength(aLength);
|
||||
*aLength = 0;
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
static PRBool
|
||||
|
Loading…
Reference in New Issue
Block a user