Bläddra i källkod

fix #1283 remove thumbnail_...

Shinsuke Sugaya 7 år sedan
förälder
incheckning
8fdf3847d9

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

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