From 2a323e87de611b2964250bf880c0f4f6e0b18689 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Quentin?=
 <jquentin@jquentin-laptop-kub2.(none)>
Date: Thu, 23 Jul 2009 17:15:01 -0400
Subject: [PATCH] [#1917] fixed

---
 sflphone-common/src/managerimpl.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sflphone-common/src/managerimpl.cpp b/sflphone-common/src/managerimpl.cpp
index 858ff6ae44..0b537b2e8d 100644
--- a/sflphone-common/src/managerimpl.cpp
+++ b/sflphone-common/src/managerimpl.cpp
@@ -2439,7 +2439,12 @@ std::map< std::string, std::string > ManagerImpl::getAccountDetails (const Accou
     std::string accountType;
     RegistrationState state;
 
-    state = _accountMap[accountID]->getRegistrationState();
+    Account * account = _accountMap[accountID];
+    if(!account){
+        _debug("getAccountDetails on unexisting account");
+        return a;
+    }
+    state = account->getRegistrationState();
     accountType = getConfigString (accountID, CONFIG_ACCOUNT_TYPE);
 
     a.insert (std::pair<std::string, std::string> (CONFIG_ACCOUNT_ALIAS, getConfigString (accountID, CONFIG_ACCOUNT_ALIAS)));
-- 
GitLab