ekiga r6217 - in trunk: . src/endpoints



Author: dsandras
Date: Tue Apr 22 21:00:18 2008
New Revision: 6217
URL: http://svn.gnome.org/viewvc/ekiga?rev=6217&view=rev

Log:
Added guards against NULL value.


Modified:
   trunk/ChangeLog
   trunk/src/endpoints/sip.cpp

Modified: trunk/src/endpoints/sip.cpp
==============================================================================
--- trunk/src/endpoints/sip.cpp	(original)
+++ trunk/src/endpoints/sip.cpp	Tue Apr 22 21:00:18 2008
@@ -931,8 +931,11 @@
    * TODO
    * Wouldn't it be convenient to emit the signal and have the presence core listen to it ?
    */
-  runtime.run_in_main (sigc::bind (presence_core->presence_received.make_slot (), _uri, presence));
-  runtime.run_in_main (sigc::bind (presence_core->status_received.make_slot (), _uri, status));
+  if (presence_core) {
+
+    runtime.run_in_main (sigc::bind (presence_core->presence_received.make_slot (), _uri, presence));
+    runtime.run_in_main (sigc::bind (presence_core->status_received.make_slot (), _uri, status));
+  }
 }
 
 



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