Topcrash bug # 146466: add some trivial extra defensive null checking. r=samir, danm sr=me
git-svn-id: svn://10.0.0.236/trunk@131535 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8e9f040f59
commit
adc9ca4de1
@ -404,6 +404,9 @@ NS_IMETHODIMP nsWindowDataSource::GetTarget(nsIRDFResource *aSource, nsIRDFResou
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(_retval);
|
||||
|
||||
// add extra NULL checking for top-crash bug # 146466
|
||||
if (!gRDFService) return NS_RDF_NO_VALUE;
|
||||
if (!mInner) return NS_RDF_NO_VALUE;
|
||||
if (!mContainer) return NS_RDF_NO_VALUE;
|
||||
// special case kNC_KeyIndex before we forward to mInner
|
||||
if (aProperty == kNC_KeyIndex) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user