Bug 9098. Remove NS_PRECONDITION, as this can happen normally as part of teardown.
git-svn-id: svn://10.0.0.236/trunk@37620 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1271,9 +1271,10 @@ RDFGenericBuilderImpl::OnAssert(nsIRDFResource* aSubject,
|
||||
nsIRDFResource* aPredicate,
|
||||
nsIRDFNode* aObject)
|
||||
{
|
||||
NS_PRECONDITION(mDocument != nsnull, "not initialized");
|
||||
// Just silently fail, because this can happen "normally" as part
|
||||
// of tear-down code. (Bug 9098)
|
||||
if (! mDocument)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
return NS_OK;
|
||||
|
||||
nsresult rv;
|
||||
|
||||
@@ -1498,9 +1499,10 @@ RDFGenericBuilderImpl::OnUnassert(nsIRDFResource* aSubject,
|
||||
nsIRDFResource* aPredicate,
|
||||
nsIRDFNode* aObject)
|
||||
{
|
||||
NS_PRECONDITION(mDocument != nsnull, "not initialized");
|
||||
// Just silently fail, because this can happen "normally" as part
|
||||
// of tear-down code. (Bug 9098)
|
||||
if (! mDocument)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
return NS_OK;
|
||||
|
||||
nsresult rv;
|
||||
|
||||
|
||||
@@ -1271,9 +1271,10 @@ RDFGenericBuilderImpl::OnAssert(nsIRDFResource* aSubject,
|
||||
nsIRDFResource* aPredicate,
|
||||
nsIRDFNode* aObject)
|
||||
{
|
||||
NS_PRECONDITION(mDocument != nsnull, "not initialized");
|
||||
// Just silently fail, because this can happen "normally" as part
|
||||
// of tear-down code. (Bug 9098)
|
||||
if (! mDocument)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
return NS_OK;
|
||||
|
||||
nsresult rv;
|
||||
|
||||
@@ -1498,9 +1499,10 @@ RDFGenericBuilderImpl::OnUnassert(nsIRDFResource* aSubject,
|
||||
nsIRDFResource* aPredicate,
|
||||
nsIRDFNode* aObject)
|
||||
{
|
||||
NS_PRECONDITION(mDocument != nsnull, "not initialized");
|
||||
// Just silently fail, because this can happen "normally" as part
|
||||
// of tear-down code. (Bug 9098)
|
||||
if (! mDocument)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
return NS_OK;
|
||||
|
||||
nsresult rv;
|
||||
|
||||
|
||||
@@ -1271,9 +1271,10 @@ RDFGenericBuilderImpl::OnAssert(nsIRDFResource* aSubject,
|
||||
nsIRDFResource* aPredicate,
|
||||
nsIRDFNode* aObject)
|
||||
{
|
||||
NS_PRECONDITION(mDocument != nsnull, "not initialized");
|
||||
// Just silently fail, because this can happen "normally" as part
|
||||
// of tear-down code. (Bug 9098)
|
||||
if (! mDocument)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
return NS_OK;
|
||||
|
||||
nsresult rv;
|
||||
|
||||
@@ -1498,9 +1499,10 @@ RDFGenericBuilderImpl::OnUnassert(nsIRDFResource* aSubject,
|
||||
nsIRDFResource* aPredicate,
|
||||
nsIRDFNode* aObject)
|
||||
{
|
||||
NS_PRECONDITION(mDocument != nsnull, "not initialized");
|
||||
// Just silently fail, because this can happen "normally" as part
|
||||
// of tear-down code. (Bug 9098)
|
||||
if (! mDocument)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
return NS_OK;
|
||||
|
||||
nsresult rv;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user