Skip to content
This repository has been archived by the owner on Feb 14, 2021. It is now read-only.

Commit

Permalink
Fix uncaught exception when no user defined config file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jlHertel committed Sep 15, 2018
1 parent 5e18133 commit 93e4ac6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ConfigurationLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,9 @@ Device_ptr ConfigurationLoader::loadSystemWideConfiguration() {

std::list<Device_ptr> ConfigurationLoader::loadUserDefinedConfiguration() {
Glib::ustring userDefinedXML(this->readUserDefinedXML());
if (userDefinedXML.empty()) {
std::list<Device_ptr> deviceList;
return deviceList;
}
return Parser::parseDevices(userDefinedXML);
}

0 comments on commit 93e4ac6

Please sign in to comment.