diff --git a/src/accountmodel.cpp b/src/accountmodel.cpp
index bce355cdd9c899508bdc9b24c1370ea9f44d7c8d..c2395b4edbee7c6644df5e2866787f29a7cd6518 100644
--- a/src/accountmodel.cpp
+++ b/src/accountmodel.cpp
@@ -206,7 +206,9 @@ void AccountModelPrivate::slotAccountChanged(const QString& account,const QStrin
       if (status != "OK") //Do not pollute the log
          qDebug() << "Account" << account << "status changed to" << status;
    }
-   a->d_ptr->m_LastSipRegistrationStatus = status;
+
+   if (a)
+      a->d_ptr->m_LastSipRegistrationStatus = status;
 
    ConfigurationManagerInterface& configurationManager = DBus::ConfigurationManager::instance();
 
diff --git a/src/call.cpp b/src/call.cpp
index 2ef68b526f76227e4bd1a1f103cb7adf1ab52275..001b441a5c93f7b9260051d656bf98fa0664c563 100644
--- a/src/call.cpp
+++ b/src/call.cpp
@@ -869,7 +869,10 @@ void Call::setDialNumber(const ContactMethod* number)
    }
    if (d_ptr->m_pDialNumber && number)
       d_ptr->m_pDialNumber->setUri(number->uri());
-   emit dialNumberChanged(d_ptr->m_pDialNumber->uri());
+
+   if (d_ptr->m_pDialNumber)
+      emit dialNumberChanged(d_ptr->m_pDialNumber->uri());
+
    emit changed();
    emit changed(this);
 }
diff --git a/src/private/videorenderermanager.cpp b/src/private/videorenderermanager.cpp
index 2e7c51c85b046cde5cf031f6158b8a273dec5442..f30afb69e9eb5c37fe2c189031a128a09acc5631 100644
--- a/src/private/videorenderermanager.cpp
+++ b/src/private/videorenderermanager.cpp
@@ -187,10 +187,12 @@ void VideoRendererManagerPrivate::startedDecoding(const QString& id, const QStri
    }
    else {
       m_lRenderers[rid]->setSize(res);
+#ifdef ENABLE_LIBWRAP
       DBus::VideoManager::instance().registerSinkTarget(id, [this, id, width, height] (const unsigned char* frame) {
           static_cast<Video::DirectRenderer*>(m_lRenderers[id.toLatin1()])->onNewFrame(
                                     QByteArray::fromRawData(reinterpret_cast<const char *>(frame), width*height));
       });
+#endif
 
 #if !defined(Q_OS_DARWIN)
       static_cast<Video::ShmRenderer*>(m_lRenderers[rid])->setShmPath(shmPath);
diff --git a/src/profilemodel.cpp b/src/profilemodel.cpp
index a35b956d75c205bd80f58508d319d1b989a6f3b1..716210cecc5b5bec42fe1e18db2bee012ab1959e 100644
--- a/src/profilemodel.cpp
+++ b/src/profilemodel.cpp
@@ -718,6 +718,9 @@ bool ProfileModel::dropMimeData(const QMimeData *data, Qt::DropAction action, in
          destIdx = row;
       }
 
+      if (!newProfile)
+         return false;
+
       Node* accountProfile = d_ptr->m_pProfileBackend->m_pEditor->m_hProfileByAccountId[accountId];
       for (Node* acc : accountProfile->children) {
          if(acc->account->id() == accountId) {