bug 466378, rdf:nodeID not working when node appears as object before as subject in RDF/XML source, patch=mininet@wanadoo.fr, r=me, sr=shaver, a1.9.1=beltzner

This commit is contained in:
Axel Hecht 2008-12-08 12:26:52 +01:00
parent e79198b2b1
commit 8f3afbc633

View File

@ -994,8 +994,12 @@ RDFContentSinkImpl::GetResourceAttribute(const PRUnichar** aAttributes,
mNodeIDMap.Get(nodeID,aResource);
if (!*aResource) {
nsresult rv;
rv = gRDFService->GetAnonymousResource(aResource);
if (NS_FAILED(rv)) {
return rv;
}
mNodeIDMap.Put(nodeID,*aResource);
return gRDFService->GetAnonymousResource(aResource);
}
return NS_OK;
}