From 9eef80285827648dd91bc09dc356ddbe9e54d23d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 17 Mar 2012 14:07:15 +0100 Subject: [PATCH] Only copy the current hash to the last insert hash if it has been set. --- src/de/todesbaum/jsite/application/Project.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/todesbaum/jsite/application/Project.java b/src/de/todesbaum/jsite/application/Project.java index b0ceb7f..c7bdd79 100644 --- a/src/de/todesbaum/jsite/application/Project.java +++ b/src/de/todesbaum/jsite/application/Project.java @@ -426,7 +426,7 @@ public class Project implements Comparable { */ public void copyHashes() { for (FileOption fileOption : fileOptions.values()) { - if (!fileOption.getCurrentHash().equals(fileOption.getLastInsertHash())) { + if ((fileOption.getCurrentHash() != null) && (fileOption.getCurrentHash().length() > 0) && !fileOption.getCurrentHash().equals(fileOption.getLastInsertHash())) { fileOption.setLastInsertEdition(edition); fileOption.setLastInsertHash(fileOption.getCurrentHash()); } -- 2.7.4