[f-spot] Don't crash with empty databases.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Don't crash with empty databases.
- Date: Wed, 15 Sep 2010 17:58:59 +0000 (UTC)
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]