mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add null conditional operator to prevent potential NullReferenceException in Stop method
This commit is contained in:
@@ -459,7 +459,7 @@ public sealed partial class ImageConvertViewModel : ViewModelBase
|
||||
internal void Stop()
|
||||
{
|
||||
_cancel = true;
|
||||
_converter.Abort();
|
||||
_converter?.Abort();
|
||||
StopEnabled = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user