Re: Firefox crash When using rdf:files in a composite datasource with my rdf datasource component!

Neil <[email protected]> Tue, 23 Jun 2009 10:02:12 +0100
Newsgroups gmane.comp.mozilla.devel.rdf
Message-ID <[email protected]>
BenKwan wrote:

>i find another way to fix this problem:
>
>    GetTarget: function(aSource,aProperty,aTruthValue)
>    {
>        var retVal = this._rdfDataSource.GetTarget
>(aSource,aProperty,aTruthValue);
>        if(!retVal)
>        {
>            throw Components.results.NS_ERROR_FAILURE;
>        }
>        return retVal;
>    },
>
>Is it mean that the RDFContainerUtils leave the work of disposing error to the implementation of nsIRDFDataSource?
>  
>
What's normally supposed to happen is that the GetTarget function 
returns NS_RDF_NO_VALUE in this case. Unfortunately JS doesn't support 
this value, instead it can only return null. As you have found out, the 
best you can do is to throw NS_ERROR_FAILURE.

-- 
Warning: May contain traces of nuts.