[f-spot] Don't crash with empty databases.



commit 9054153b3b40f76f7e094ca8db98de0eaca62808
Author: Ruben Vermeersch <ruben savanne be>
Date:   Wed Sep 15 19:56:40 2010 +0200

    Don't crash with empty databases.

 src/Clients/MainApp/FSpot/App.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Clients/MainApp/FSpot/App.cs b/src/Clients/MainApp/FSpot/App.cs
index cdcfeea..53bdcb4 100644
--- a/src/Clients/MainApp/FSpot/App.cs
+++ b/src/Clients/MainApp/FSpot/App.cs
@@ -223,7 +223,7 @@ namespace FSpot
         {
             // Some users get wonky URIs here, trying to work around below.
             // https://bugzilla.gnome.org/show_bug.cgi?id=629248
-            if (path.StartsWith ("gphoto2:usb:")) {
+            if (path != null && path.StartsWith ("gphoto2:usb:")) {
                 path = String.Format ("gphoto2://[{0}]", path.Substring (8));
             }
 



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