No need to check for null on values returned from tracker.
authorZeeshan Ali (Khattak) <zeeshanak@src.gnome.org>
Tue, 1 Jul 2008 12:57:34 +0000 (12:57 +0000)
committerZeeshan Ali (Khattak) <zeeshanak@src.gnome.org>
Tue, 1 Jul 2008 12:57:34 +0000 (12:57 +0000)
svn path=/trunk/; revision=190

ChangeLog
src/gupnp-media-tracker.vala

index 044002e..da59626 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
          to DIDL.
        - Put the actual "album" in the DIDL when available.
        - Put "dc:date" in the DIDL when available.
+       - No need to check for null on values returned from tracker.
 
 2008-07-01  Zeeshan Ali Khattak  <zeenix@gmail.com>
 
index 5143391..1bfbcfa 100644 (file)
@@ -446,7 +446,7 @@ public class GUPnP.MediaTracker : GLib.Object {
             height = values[5].to_int ();
 
         string title;
-        if (values[2] != null && values[2] != "")
+        if (values[2] != "")
             title = values[2];
         else
             /* If title wasn't provided, use filename instead */
@@ -509,7 +509,7 @@ public class GUPnP.MediaTracker : GLib.Object {
             track_number = values[4].to_int ();
 
         string title;
-        if (values[2] != null && values[2] != "")
+        if (values[2] != "")
             title = values[2];
         else
             /* If title wasn't provided, use filename instead */