X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=src%2Fstrip.vala;h=a30e35e676dc8f0d38392077deac0cb65bc9a0b4;hb=2055295d4940963d00ab80e95539bb53e3f88fd3;hp=10ee0343545b869c16aed879a5ab10b6acfe6e6b;hpb=1ab5acdd121228435a0c50aadf1f1d9d7782aa11;p=app.mailtrimmer diff --git a/src/strip.vala b/src/strip.vala index 10ee034..a30e35e 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -556,6 +556,9 @@ public class Strip : GLib.Object { "/"+ this.active_name + "."+ GLib.Uri.escape_string(filename,"", false); var outfile = new GMime.StreamFile.for_path(fn, "w"); + if (outfile == null) { + return; // something has gone wrong?? + } outfile.set_owner(true); var file_size = (int) c.write_to_stream(outfile); var chksum = this.md5_file(fn);