[rygel] core: Search.search_criteria must not be null



commit 988a425337e0c7b8742035956b73bf502d071554
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Nov 4 20:05:45 2009 +0200

    core: Search.search_criteria must not be null
    
    The client must provide value of SearchCriteria argument when calling
    'Search' action.

 src/rygel/rygel-search.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-search.vala b/src/rygel/rygel-search.vala
index 900a3c4..a63cd10 100644
--- a/src/rygel/rygel-search.vala
+++ b/src/rygel/rygel-search.vala
@@ -82,8 +82,8 @@ internal class Rygel.Search: GLib.Object, Rygel.StateMachine {
                             out this.sort_criteria);
 
         try {
-            if (this.container_id == null) {
-                // Sorry we can't do anything without ContainerID
+            if (this.container_id == null || this.search_criteria == null) {
+                // Sorry we can't do anything without these two parameters
                 throw new ContentDirectoryError.NO_SUCH_OBJECT (
                                         "No such container");
             }



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