From: David ‘Bombe’ Roden Date: Sat, 17 Mar 2012 13:07:15 +0000 (+0100) Subject: Only copy the current hash to the last insert hash if it has been set. X-Git-Tag: 0.10-rc1~25 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9eef80285827648dd91bc09dc356ddbe9e54d23d;p=jSite.git Only copy the current hash to the last insert hash if it has been set. --- 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()); }