From f1fe674130122d717d3f456c67ee683ec6f0bcbd Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Sat, 27 Apr 2013 15:11:57 +0200 Subject: [PATCH] Bugfix --- Duplicati/Library/Main/ForestHash/ForestHash.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/Library/Main/ForestHash/ForestHash.cs b/Duplicati/Library/Main/ForestHash/ForestHash.cs index 5f003e6d9..4e0e261f9 100644 --- a/Duplicati/Library/Main/ForestHash/ForestHash.cs +++ b/Duplicati/Library/Main/ForestHash/ForestHash.cs @@ -115,7 +115,7 @@ namespace Duplicati.Library.Main.ForestHash Volumes.IParsedVolume r; if (!lookup.TryGetValue(i.Name, out r)) { - if (i.State == RemoteVolumeState.Uploading || i.State == RemoteVolumeState.Deleting || (r.File.Size != i.Size && r.File.Size >= 0 && i.Size >= 0)) + if (i.State == RemoteVolumeState.Uploading || i.State == RemoteVolumeState.Deleting || (r != null && r.File.Size != i.Size && r.File.Size >= 0 && i.Size >= 0)) { database.LogMessage("info", string.Format("removing file listed as {0}: {1}", i.State, i.Name), null, null); database.RemoveRemoteVolume(i.Name, null);