Skip to content

Commit

Permalink
Fixed a crashing bug when showing the history of excluded files
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertchen committed May 30, 2018
1 parent e03cd2a commit 0e585e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/duplicacy_snapshotmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "*"
}
}
Expand Down

0 comments on commit 0e585e4

Please sign in to comment.