mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Fix crash on empty getters or setters. Bug 326910, r=sicking, sr=bryner
This commit is contained in:
parent
8b7754cd9e
commit
1863bd5aa0
@ -242,7 +242,7 @@ nsXBLProtoImplProperty::CompileMember(nsIScriptContext* aContext, const nsCStrin
|
||||
}
|
||||
|
||||
PRBool deletedGetter = PR_FALSE;
|
||||
if (mGetterText) {
|
||||
if (mGetterText && mGetterText->GetText()) {
|
||||
nsDependentString getter(mGetterText->GetText());
|
||||
if (!getter.IsEmpty()) {
|
||||
// Compile into a temp object so we don't wipe out mGetterText
|
||||
@ -298,7 +298,7 @@ nsXBLProtoImplProperty::CompileMember(nsIScriptContext* aContext, const nsCStrin
|
||||
}
|
||||
|
||||
PRBool deletedSetter = PR_FALSE;
|
||||
if (mSetterText) {
|
||||
if (mSetterText && mSetterText->GetText()) {
|
||||
nsDependentString setter(mSetterText->GetText());
|
||||
if (!setter.IsEmpty()) {
|
||||
// Compile into a temp object so we don't wipe out mSetterText
|
||||
|
Loading…
Reference in New Issue
Block a user