Author: echatellier Date: 2014-07-01 15:42:59 +0200 (Tue, 01 Jul 2014) New Revision: 304 Url: http://forge.codelutin.com/projects/faxtomail/repository/revisions/304 Log: Fix debug message Modified: trunk/faxtomail-persistence/src/main/java/com/franciaflex/faxtomail/persistence/entities/AttachmentFileImpl.java Modified: trunk/faxtomail-persistence/src/main/java/com/franciaflex/faxtomail/persistence/entities/AttachmentFileImpl.java =================================================================== --- trunk/faxtomail-persistence/src/main/java/com/franciaflex/faxtomail/persistence/entities/AttachmentFileImpl.java 2014-07-01 13:09:57 UTC (rev 303) +++ trunk/faxtomail-persistence/src/main/java/com/franciaflex/faxtomail/persistence/entities/AttachmentFileImpl.java 2014-07-01 13:42:59 UTC (rev 304) @@ -102,7 +102,7 @@ @Override protected void finalize() throws Throwable { try { - if (tmpLocalFile != null) { + if (tmpLocalFile != null && tmpLocalFile.exists()) { if (log.isDebugEnabled()) { log.debug(String.format("Deleting file : %s", tmpLocalFile.getAbsolutePath())); }