Bug 507367 incorrect null check in nsSVGPatternFrame::GetTargetGeometry

r=jwatt
This commit is contained in:
timeless@mozdev.org 2009-08-12 11:49:55 +02:00
parent 854b7b365e
commit 72de25b884

View File

@ -592,8 +592,8 @@ nsSVGPatternFrame::GetTargetGeometry(gfxMatrix *aCTM,
} else {
*aTargetContent = static_cast<nsSVGElement*>(aTarget->GetContent());
}
NS_ASSERTION(aTargetContent,"Caller does not have any content!");
if (!aTargetContent)
NS_ASSERTION(*aTargetContent,"Caller does not have any content!");
if (!*aTargetContent)
return NS_ERROR_FAILURE;
if (callerType == nsGkAtoms::svgGlyphFrame) {