Fix #29574: Strange crash using translated Blender

Description can be NULL for properties like enum items. Just added NULL-check here
This commit is contained in:
Sergey Sharybin 2011-12-11 15:42:39 +00:00
parent 2da7066caa
commit 2a426d3eff

@ -469,7 +469,7 @@ static const char *rna_ensure_property_description(PropertyRNA *prop)
}
#ifdef WITH_INTERNATIONAL
if((U.transopts&USER_DOTRANSLATE) && (U.transopts&USER_TR_TOOLTIPS))
if(description && (U.transopts&USER_DOTRANSLATE) && (U.transopts&USER_TR_TOOLTIPS))
description= BLF_gettext(description);
#endif