summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon/src/CAmCommandSender.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AudioManagerDaemon/src/CAmCommandSender.cpp')
-rw-r--r--AudioManagerDaemon/src/CAmCommandSender.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/AudioManagerDaemon/src/CAmCommandSender.cpp b/AudioManagerDaemon/src/CAmCommandSender.cpp
index d864981..0803dc8 100644
--- a/AudioManagerDaemon/src/CAmCommandSender.cpp
+++ b/AudioManagerDaemon/src/CAmCommandSender.cpp
@@ -27,6 +27,7 @@
#include <sstream>
#include <string>
#include <cstring>
+#include <stdexcept>
#include "CAmCommandReceiver.h"
#include "TAmPluginTemplate.h"
#include "CAmDltWrapper.h"
@@ -53,6 +54,12 @@ CAmCommandSender::CAmCommandSender(const std::vector<std::string>& listOfPluginD
mListLibraryNames(), //
mCommandReceiver()
{
+ if (listOfPluginDirectories.empty())
+ {
+ logError("CAmCommandSender::CAmCommandSender: List of commandplugins is empty");
+ throw std::runtime_error("List of commandplugins is empty!");
+ }
+
std::vector<std::string> sharedLibraryNameList;
std::vector<std::string>::const_iterator dirIter = listOfPluginDirectories.begin();
std::vector<std::string>::const_iterator dirIterEnd = listOfPluginDirectories.end();