Bug 317877 XBL: crash if <field> has no name attribute [@ nsCharTraits::length]
patch by ajschult@verizon.net r=bz sr=bz git-svn-id: svn://10.0.0.236/trunk@185310 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
0cea80483f
commit
94ccbc6bf0
@ -766,12 +766,14 @@ nsXBLContentSink::ConstructField(const PRUnichar **aAtts, PRUint32 aLineNumber)
|
||||
}
|
||||
}
|
||||
|
||||
// All of our pointers are now filled in. Construct our field with all of
|
||||
// these parameters.
|
||||
mField = new nsXBLProtoImplField(name, readonly);
|
||||
if (mField) {
|
||||
mField->SetLineNumber(aLineNumber);
|
||||
AddMember(mField);
|
||||
if (name) {
|
||||
// All of our pointers are now filled in. Construct our field with all of
|
||||
// these parameters.
|
||||
mField = new nsXBLProtoImplField(name, readonly);
|
||||
if (mField) {
|
||||
mField->SetLineNumber(aLineNumber);
|
||||
AddMember(mField);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user