diff --git a/src/dfb/fontmgr.cpp b/src/dfb/fontmgr.cpp index 8d94c2300e..1bc84cac58 100644 --- a/src/dfb/fontmgr.cpp +++ b/src/dfb/fontmgr.cpp @@ -144,6 +144,12 @@ void wxFontsManager::AddAllFonts() { wxString dir = tkn.GetNextToken(); + if ( !wxDir::Exists(dir) ) + { + wxLogTrace(_T("font"), _T("font directory %s doesn't exist"), dir); + continue; + } + wxArrayString indexFiles; if ( !wxDir::GetAllFiles(dir, &indexFiles, _T("FontsIndex")) ) continue;