[folks] Don't initialise favourite contacts support if the Logger doesn't exist



commit 98fe95b2d3428f24833023b2aec70d8a5c932204
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Fri Jul 9 11:04:52 2010 +0100

    Don't initialise favourite contacts support if the Logger doesn't exist

 backends/telepathy/tpf-persona-store.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/backends/telepathy/tpf-persona-store.vala b/backends/telepathy/tpf-persona-store.vala
index 095142c..bf1c58d 100644
--- a/backends/telepathy/tpf-persona-store.vala
+++ b/backends/telepathy/tpf-persona-store.vala
@@ -172,6 +172,9 @@ public class Tpf.PersonaStore : Folks.PersonaStore
 
   private async void initialise_favourite_contacts ()
     {
+      if (this.logger == null)
+        return;
+
       /* Get an initial set of favourite contacts */
       try
         {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]