From a13f557bc99ec43ba533286ac66a72134ea1003d Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Wed, 22 Sep 2010 22:14:49 +0300 Subject: [PATCH] core: HTTP GET/HEAD is invalid for place-holder items --- src/rygel/rygel-http-get.vala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rygel/rygel-http-get.vala b/src/rygel/rygel-http-get.vala index b994c31..87e152f 100644 --- a/src/rygel/rygel-http-get.vala +++ b/src/rygel/rygel-http-get.vala @@ -78,6 +78,11 @@ internal class Rygel.HTTPGet : HTTPRequest { protected override async void find_item () throws Error { yield base.find_item (); + if (unlikely (this.item.size == 0)) { + throw new HTTPRequestError.NOT_FOUND ("Item '%s' is empty", + this.item.id); + } + if (this.uri.thumbnail_index >= 0) { if (this.item is MusicItem) { var music = this.item as MusicItem; -- 2.7.4