[f-spot] Avoid SQL error when importing files without description.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Avoid SQL error when importing files without description.
- Date: Sun, 13 Jun 2010 13:05:10 +0000 (UTC)
commit 161dbebff3b111ecdf615df50ab42622d62342f5
Author: Ruben Vermeersch <ruben savanne be>
Date: Sun Jun 13 14:25:05 2010 +0200
Avoid SQL error when importing files without description.
src/PhotoStore.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/PhotoStore.cs b/src/PhotoStore.cs
index a88f82a..f44d26d 100644
--- a/src/PhotoStore.cs
+++ b/src/PhotoStore.cs
@@ -155,7 +155,7 @@ public class PhotoStore : DbStore<Photo> {
"time", unix_time,
"base_uri", item.DefaultVersion.BaseUri.ToString (),
"filename", item.DefaultVersion.Filename,
- "description", description,
+ "description", description ?? String.Empty,
"roll_id", roll_id,
"default_version_id", Photo.OriginalVersionId,
"rating", "0"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]