summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon/src
diff options
context:
space:
mode:
authorChristian Linke <christian.linke@bmw.de>2013-02-28 17:44:28 +0100
committerChristian Linke <christian.linke@bmw.de>2013-02-28 17:44:28 +0100
commit3503d13b45551160afb8dda9405cfded42fb61f1 (patch)
treebfd2e978bf2ea40b471eb53b44aadf99b75ab885 /AudioManagerDaemon/src
parentc25c9b1947474153ff34d8363b2c9e28cad78857 (diff)
downloadaudiomanager-3503d13b45551160afb8dda9405cfded42fb61f1.tar.gz
* stability fix because of dbus interface of nsm
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Diffstat (limited to 'AudioManagerDaemon/src')
-rw-r--r--AudioManagerDaemon/src/CAmNodeStateCommunicator.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/AudioManagerDaemon/src/CAmNodeStateCommunicator.cpp b/AudioManagerDaemon/src/CAmNodeStateCommunicator.cpp
index a80e44b..01c4c6e 100644
--- a/AudioManagerDaemon/src/CAmNodeStateCommunicator.cpp
+++ b/AudioManagerDaemon/src/CAmNodeStateCommunicator.cpp
@@ -589,7 +589,11 @@ DBusHandlerResult CAmNodeStateCommunicator::signalCallback(DBusConnection* conn,
{
(void) conn;
CAmNodeStateCommunicator* instance(static_cast<CAmNodeStateCommunicator*>(user_data));
- std::string interface = dbus_message_get_interface(msg);
+
+ const char* iface = dbus_message_get_interface(msg);
+ if (iface==NULL)
+ return (DBUS_HANDLER_RESULT_NOT_YET_HANDLED);
+ std::string interface(iface);
std::string member = dbus_message_get_member(msg);
if (interface=="org.genivi.NodeStateManager.Consumer")