From 0c37d7513ff509fade41e1077c5dbcd934c43470 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 15 Jun 2018 17:14:13 +0800 Subject: [PATCH] src/strip.vala --- src/strip.vala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/strip.vala b/src/strip.vala index 773a91b..4e65238 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -371,7 +371,12 @@ public class Strip : GLib.Object { // initialize it with known data.. // that should wipe out dupes. var filesize = this.execute("SELECT filesize FROM Attachment WHERE id = %d".printf( - int.parse(sid))); + int.parse(sid))); + + if (filesize=="") { + GLib.debug("Ignoring record id (missing in database) :%s", sid); + return; + } if (int.parse(filesize) < 1) { GLib.debug("Could not get filesize from id :%s = %s", sid,filesize); Posix.exit(0); -- 2.39.2