You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WindowsSnapshot.Dispose() calls Dispose on a variable that is null if the constructor failed.
Steps to reproduce
Set snapshot policy to required
Run backup without admin permissions
Actual result:
Backup fails as expected, but verbose log shows cleanup error:
2024-05-14 18:29:20 +02 - [Verbose-Duplicati.Library.Snapshots.WindowsSnapshot-VSSCleanupOnError]: Failed during VSS error cleanup
System.NullReferenceException: Object reference not set to an instance of an object.
at Duplicati.Library.Snapshots.WindowsSnapshot.Dispose(Boolean disposing) in Duplicati\Library\Snapshots\WindowsSnapshot.cs:line 324
at Duplicati.Library.Snapshots.SnapshotBase.Dispose() in Duplicati\Library\Snapshots\SnapshotBase.cs:line 197
at Duplicati.Library.Snapshots.WindowsSnapshot..ctor(IEnumerable`1 sources, IDictionary`2 options) in Duplicati\Library\Snapshots\WindowsSnapshot.cs:line 94
Expected result:
The cleanup should succeed, because nothing needs to be done.
The text was updated successfully, but these errors were encountered:
Environment info
Description
WindowsSnapshot.Dispose()
calls Dispose on a variable that is null if the constructor failed.Steps to reproduce
Backup fails as expected, but verbose log shows cleanup error:
The cleanup should succeed, because nothing needs to be done.
The text was updated successfully, but these errors were encountered: