summaryrefslogtreecommitdiff
path: root/AudioManagerUtilities/src/CAmDbusWrapper.cpp
diff options
context:
space:
mode:
authorGENIVI Audio Manager Maintainer <GeniviAMmaintainer@users.noreply.github.com>2016-11-22 13:37:35 +0100
committerGitHub <noreply@github.com>2016-11-22 13:37:35 +0100
commit70f3263edf097b7990fcd2d27d4d47da34b6c0da (patch)
treef2a5e4482b4893315600fe7bcb822fa5260fb944 /AudioManagerUtilities/src/CAmDbusWrapper.cpp
parent0b8e04d293612d119227809fc678c90a39a51d3d (diff)
parent90f28dc6a890f9732596e6550d138e997b186297 (diff)
downloadaudiomanager-70f3263edf097b7990fcd2d27d4d47da34b6c0da.tar.gz
Merge pull request #7 from GENIVI/pull_request
talked through in telefone conference
Diffstat (limited to 'AudioManagerUtilities/src/CAmDbusWrapper.cpp')
-rw-r--r--AudioManagerUtilities/src/CAmDbusWrapper.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/AudioManagerUtilities/src/CAmDbusWrapper.cpp b/AudioManagerUtilities/src/CAmDbusWrapper.cpp
index 84ac4a3..b87d3a5 100644
--- a/AudioManagerUtilities/src/CAmDbusWrapper.cpp
+++ b/AudioManagerUtilities/src/CAmDbusWrapper.cpp
@@ -106,6 +106,12 @@ CAmDbusWrapper::CAmDbusWrapper(CAmSocketHandler* socketHandler, DBusBusType type
logError("DBusWrapper::DBusWrapper Registering of timer functions failed");
}
+ if (prefix.empty() && objectPath.empty())
+ {
+ logInfo("DBusWrapper::DBusWrapper We don't register a connection object!");
+ return;
+ }
+
//register callback for Introspectio
mObjectPathVTable.message_function = CAmDbusWrapper::cbRootIntrospection;
dbus_connection_register_object_path(mpDbusConnection, objectPath.c_str(), &mObjectPathVTable, this);