rhythmbox r5540 - in trunk: . bindings/python



Author: jmatthew
Date: Thu Jan 10 23:24:18 2008
New Revision: 5540
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=5540&view=rev

Log:
2008-01-11  Jonathan Matthew  <jonathan d14n org>

	* bindings/python/rb.override:
	Don't crash in RBShellPlayer.get_playing_path() if the playing path is
	NULL.  Fixes #508573.


Modified:
   trunk/ChangeLog
   trunk/bindings/python/rb.override

Modified: trunk/bindings/python/rb.override
==============================================================================
--- trunk/bindings/python/rb.override	(original)
+++ trunk/bindings/python/rb.override	Thu Jan 10 23:24:18 2008
@@ -309,7 +309,11 @@
     if (pyg_error_check(&error))
         return NULL;
 
-    return PyString_FromString (path);
+    if (path == NULL) {
+        Py_RETURN_NONE;
+    } else {
+        return PyString_FromString (path);
+    }
 }
 %%
 override RBSource__do_impl_cut



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