From 0e585e4be4e4e6a61ab2e1ebf591105c3bb060d0 Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Wed, 30 May 2018 12:05:40 -0400 Subject: [PATCH] Fixed a crashing bug when showing the history of excluded files --- src/duplicacy_snapshotmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duplicacy_snapshotmanager.go b/src/duplicacy_snapshotmanager.go index 553a1fc..f072092 100644 --- a/src/duplicacy_snapshotmanager.go +++ b/src/duplicacy_snapshotmanager.go @@ -1490,7 +1490,7 @@ func (manager *SnapshotManager) ShowHistory(top string, snapshotID string, revis } if showLocalHash { localFile.Hash = manager.config.ComputeFileHash(joinPath(top, filePath), make([]byte, 32*1024)) - if lastVersion.Hash != localFile.Hash { + if lastVersion == nil || lastVersion.Hash != localFile.Hash { modifiedFlag = "*" } }