Commits

Anonymous committed ca336ec

SH-1328 FIXED Crash on LLWearableType::getAllowMultiwear
Crash was because we weren't checking for null wearable lookups.

Comments (0)

Files changed (1)

indra/newview/llwearabletype.cpp

 {
 	const LLWearableDictionary *dict = LLWearableDictionary::getInstance();
 	const WearableEntry *entry = dict->lookup(type);
+	if (!entry) return FALSE;
 	return entry->mDisableCameraSwitch;
 }
 
 {
 	const LLWearableDictionary *dict = LLWearableDictionary::getInstance();
 	const WearableEntry *entry = dict->lookup(type);
+	if (!entry) return FALSE;
 	return entry->mAllowMultiwear;
 }