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:
waterson%netscape.com
1999-07-01 01:21:14 +00:00
parent d9089e62e2
commit e2c76feee9
3 changed files with 18 additions and 12 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;