[rygel] tracker: 'upload_dir' is nullable



commit e6d88e92d66c4ac5f8293638c1590d570f297601
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Mar 2 15:32:04 2010 +0200

    tracker: 'upload_dir' is nullable
    
    We get the value for this from Environment.get_user_special_dir(),
    dynamically and it could very well be null. Fixes a potential crash.

 .../tracker/rygel-tracker-item-factory.vala        |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-item-factory.vala b/src/plugins/tracker/rygel-tracker-item-factory.vala
index 1a7537c..11ee397 100644
--- a/src/plugins/tracker/rygel-tracker-item-factory.vala
+++ b/src/plugins/tracker/rygel-tracker-item-factory.vala
@@ -44,10 +44,10 @@ public abstract class Rygel.TrackerItemFactory {
 
     public ArrayList<ArrayList<string>> key_chains;
 
-    public TrackerItemFactory (string category,
-                               string upnp_class,
-                               string resources_class_path,
-                               string upload_dir) {
+    public TrackerItemFactory (string  category,
+                               string  upnp_class,
+                               string  resources_class_path,
+                               string? upload_dir) {
         this.category = category;
         this.upnp_class = upnp_class;
         this.resources_class_path = resources_class_path;



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