A possible bug-fix



diff --git a/src/rygel/rygel-connection-manager.vala b/src/rygel/rygel-connection-manager.vala

index f378131..a3ec5e4 100644

--- a/src/rygel/rygel-connection-manager.vala

+++ b/src/rygel/rygel-connection-manager.vala

@@ -39,7 +39,11 @@ public class Rygel.ConnectionManager : Service {

 

     protected string source_protocol_info {

         owned get {

-            return this.get_http_server ().get_protocol_info ();

+            HTTPServer server = this.get_http_server ();

+            if (server != null) {

+                return server.get_protocol_info ();

+            }

+            return "";

         }

     }

 

In my setup, when I run Rygel for the first time I got a segmentation fault. Only after adding the above code, I got rid of the segfault. Does this fix look reasonable?

 

Regards,

Cem



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