bug 666337 - nsTSubstring::Equals(char*) insists we not call it with a NULL argument r=surkov

This commit is contained in:
Trevor Saunders 2011-06-28 16:18:20 -07:00
parent 057badfdf2
commit 716d7edb62

View File

@ -1081,7 +1081,7 @@ nsAccessibleWrap::FirePlatformEvent(AccEvent* aEvent)
nsString newName;
accessible->GetName(newName);
NS_ConvertUTF16toUTF8 utf8Name(newName);
if (!utf8Name.Equals(atkObj->name))
if (!atkObj->name || !utf8Name.Equals(atkObj->name))
atk_object_set_name(atkObj, utf8Name.get());
break;