From 610fc84f3e41a49b6569a22d729d4bd999094346 Mon Sep 17 00:00:00 2001 From: merry Date: Fri, 15 Apr 2022 11:58:27 +0100 Subject: [PATCH] ReactiveObject: Handle case when oldValue is null (#3268) --- Ryujinx.Common/ReactiveObject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ryujinx.Common/ReactiveObject.cs b/Ryujinx.Common/ReactiveObject.cs index 8495c78f..44897f26 100644 --- a/Ryujinx.Common/ReactiveObject.cs +++ b/Ryujinx.Common/ReactiveObject.cs @@ -34,7 +34,7 @@ namespace Ryujinx.Common _readerWriterLock.ReleaseWriterLock(); - if (!oldIsInitialized || !oldValue.Equals(_value)) + if (!oldIsInitialized || oldValue == null || !oldValue.Equals(_value)) { Event?.Invoke(this, new ReactiveEventArgs(oldValue, value)); }