From e5a80eb53413ba21551378cc3b29ed9fc3e7cabf Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Wed, 5 May 2004 01:38:03 +0000 Subject: [PATCH] Bug 242613 Crash [@ EncodeStructParticle] because getEnumerator returned null r=jst sr=jst --- extensions/webservices/soap/src/nsDefaultSOAPEncoder.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/webservices/soap/src/nsDefaultSOAPEncoder.cpp b/extensions/webservices/soap/src/nsDefaultSOAPEncoder.cpp index 0ef6e49bc65e..882b981866ce 100644 --- a/extensions/webservices/soap/src/nsDefaultSOAPEncoder.cpp +++ b/extensions/webservices/soap/src/nsDefaultSOAPEncoder.cpp @@ -886,7 +886,9 @@ static nsresult EncodeStructParticle(nsISOAPEncoding* aEncoding, nsIPropertyBag* } nsCOMPtr e; - aPropertyBag->GetEnumerator(getter_AddRefs(e)); + rc = aPropertyBag->GetEnumerator(getter_AddRefs(e)); + if (NS_FAILED(rc)) + return rc; PRBool more; rc = e->HasMoreElements(&more); if (NS_FAILED(rc))