LCProc Carbon: check that bundle exists before getting languages

git-svn-id: trunk@20944 -
This commit is contained in:
tombo 2009-07-25 15:14:29 +00:00
parent fa67cda580
commit de500e63ba

View File

@ -4232,6 +4232,7 @@ procedure LCLGetLanguageIDs(var Lang, FallbackLang: String);
StrRange: CFRange;
begin
Result := 'en';
if CFBundleGetMainBundle = nil then Exit;
LangArray := CFBundleCopyLocalizationsForPreferences(CFBundleCopyBundleLocalizations(CFBundleGetMainBundle), nil);
try
if CFArrayGetCount(LangArray) > 0 then