Bug 535990: Null check at PL_DHashTableOperate to avoid crashing r=bsmedberg

This commit is contained in:
Mike Hommey 2010-02-20 08:55:34 -05:00
Родитель 2bf8037b2b
Коммит 48a4c6bcf7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -790,7 +790,7 @@ PRBool
PREF_PrefIsLocked(const char *pref_name)
{
PRBool result = PR_FALSE;
if (gIsAnyPrefLocked) {
if (gIsAnyPrefLocked && gHashTable.ops) {
PrefHashEntry* pref = pref_HashTableLookup(pref_name);
if (pref && PREF_IS_LOCKED(pref))
result = PR_TRUE;