diff --git a/sflphone-common/src/managerimpl.cpp b/sflphone-common/src/managerimpl.cpp
index 858ff6ae44a91656b2c28b422a48be916fbe2791..0b537b2e8d315f2cef63b8f97a74d35bf1ea3b07 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)));