From: Alan Knowles Date: Fri, 15 Jun 2018 09:14:13 +0000 (+0800) Subject: src/strip.vala X-Git-Url: http://git.roojs.org/?p=app.mailtrimmer;a=commitdiff_plain;h=0c37d7513ff509fade41e1077c5dbcd934c43470 src/strip.vala --- 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);