Merge pull request #6483 from duplicati/feature/handle-missing-hash

Handle a case where a missing hash would cause a crash
This commit is contained in:
Kenneth Skovhede
2025-08-14 11:13:58 +02:00
committed by GitHub
@@ -281,7 +281,7 @@ namespace Duplicati.Library.Main.Database
await foreach (var rd in cmd.ExecuteReaderEnumerableAsync(token).ConfigureAwait(false))
yield return new RemoteVolume(
rd.ConvertValueToString(0) ?? throw new Exception("Filename was null"),
rd.ConvertValueToString(1) ?? throw new Exception("Hash was null"),
rd.ConvertValueToString(1) ?? "",
rd.ConvertValueToInt64(2, -1)
);
}