зеркало из https://github.com/mozilla/gecko-dev.git
fix for bug #197972.
fix assertions when trying to generate collation keys for cards without display names in addition, we'd bail out before creating the secondary sort key. r=cavin, sr=bienvenu.
This commit is contained in:
Родитель
af71f025b3
Коммит
1b797f7233
|
@ -788,6 +788,14 @@ nsresult nsAbView::CreateCollationKey(const PRUnichar *aSource, PRUint8 **aKey,
|
|||
NS_ENSURE_ARG_POINTER(aKey);
|
||||
NS_ENSURE_ARG_POINTER(aKeyLen);
|
||||
|
||||
if (!*aSource)
|
||||
{
|
||||
// no string, so no key.
|
||||
*aKey = nsnull;
|
||||
*aKeyLen = 0;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult rv;
|
||||
if (!mCollationKeyGenerator)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче