diff --git a/src/ThemeData.cpp b/src/ThemeData.cpp index d345253fb..02f3e5406 100644 --- a/src/ThemeData.cpp +++ b/src/ThemeData.cpp @@ -315,7 +315,19 @@ const std::shared_ptr& ThemeData::getDefault() if(theme == nullptr) { theme = std::shared_ptr(new ThemeData()); - theme->loadFile(getHomePath() + "/.emulationstation/es_theme_default.xml"); + + const std::string path = getHomePath() + "/.emulationstation/es_theme_default.xml"; + if(fs::exists(path)) + { + try + { + theme->loadFile(path); + } catch(ThemeException& e) + { + LOG(LogError) << e.what(); + theme = std::shared_ptr(new ThemeData()); //reset to empty + } + } } return theme;