From 716d7edb624337d876c85c9a59b5d873ad4057c3 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Tue, 28 Jun 2011 16:18:20 -0700 Subject: [PATCH] bug 666337 - nsTSubstring::Equals(char*) insists we not call it with a NULL argument r=surkov --- accessible/src/atk/nsAccessibleWrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accessible/src/atk/nsAccessibleWrap.cpp b/accessible/src/atk/nsAccessibleWrap.cpp index 9fabeea3637..4d125d4956d 100644 --- a/accessible/src/atk/nsAccessibleWrap.cpp +++ b/accessible/src/atk/nsAccessibleWrap.cpp @@ -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;