瀏覽代碼

fix #1283 remove thumbnail_...

Shinsuke Sugaya 7 年之前
父節點
當前提交
bd6ff9d7f8
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

+ 3 - 2
src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

@@ -114,11 +114,12 @@ public class CommandGenerator extends BaseThumbnailGenerator {
                 return true;
             } catch (final Exception e) {
                 logger.warn("Failed to process ", e);
+                updateThumbnailField(thumbnailId, StringUtil.EMPTY);
+                return false;
+            } finally {
                 if (tempFile != null && !tempFile.delete()) {
                     logger.debug("Failed to delete " + tempFile.getAbsolutePath());
                 }
-                updateThumbnailField(thumbnailId, StringUtil.EMPTY);
-                return false;
             }
         });