Skip to content

Commit 28ce3cf

Browse files
Fix: Added null check for op before calling Unadvise (#17315)
1 parent 2f5ee47 commit 28ce3cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Utils/Shell/ShellFileOperations2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ protected virtual void Dispose(bool disposing)
576576
// Dispose managed state (managed objects).
577577
}
578578

579-
if (sink != null)
579+
if (sink != null && op != null)
580580
{
581581
op.Unadvise(sinkCookie);
582582
}

0 commit comments

Comments
 (0)