mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-23 13:04:28 +00:00
Bug 300130 - Schema Loader can crash if an non-existing type is referenced in a schema file. r/sr=peterv, a=mkaply
This commit is contained in:
parent
55f2b027fb
commit
4d2c066b06
@ -80,7 +80,7 @@ nsSchemaComplexType::Resolve(nsIWebServiceErrorHandler* aErrorHandler)
|
||||
nsAutoString attrName;
|
||||
nsresult rv1 = mAttributes.ObjectAt(i)->GetName(attrName);
|
||||
NS_ENSURE_SUCCESS(rv1, rv1);
|
||||
|
||||
|
||||
nsAutoString errorMsg;
|
||||
errorMsg.AppendLiteral("Failure resolving schema complex type, ");
|
||||
errorMsg.AppendLiteral("cannot resolve attribute \"");
|
||||
@ -141,7 +141,7 @@ nsSchemaComplexType::Resolve(nsIWebServiceErrorHandler* aErrorHandler)
|
||||
rv = mModelGroup->Resolve(aErrorHandler);
|
||||
if (NS_FAILED(rv)) {
|
||||
nsAutoString modelName;
|
||||
nsresult rv1 = type->GetName(modelName);
|
||||
nsresult rv1 = mModelGroup->GetName(modelName);
|
||||
NS_ENSURE_SUCCESS(rv1, rv1);
|
||||
|
||||
nsAutoString errorMsg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user