Signed-off-by: Kevron Rees <[email protected]>
---
 src/historytablemodel.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/historytablemodel.cpp b/src/historytablemodel.cpp
index 42735ce..c69bcf6 100644
--- a/src/historytablemodel.cpp
+++ b/src/historytablemodel.cpp
@@ -108,7 +108,9 @@ bool HistoryTableModel::insertRows(int row, int count,
     int i = 0;
     QStringList newRow = QStringList();
     ManagerProxy *mp = ManagerProxy::instance();
-    QSettings *cache = mp->history()->cache();
+    HistoryProxy* historyProxy = mp->history();
+    if(!historyProxy) return false; //abort
+    QSettings *cache = historyProxy->cache();
 
     cache->beginGroup("CallHistory");
     QStringList events = cache->childGroups();
-- 
1.7.1

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to