Fix #29574: Strange crash using translated Blender
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 11 Dec 2011 15:42:39 +0000 (15:42 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 11 Dec 2011 15:42:39 +0000 (15:42 +0000)
Description can be NULL for properties like enum items. Just added NULL-check here

source/blender/makesrna/intern/rna_access.c

index a31984dfc29f0d1fcb9e5ac8d91ef8153e72ffd8..02b1fa300fb2fe44ad4cac820bb8556263e8b3a3 100644 (file)
@@ -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