aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerry <git@mary.rs>2022-04-15 11:58:27 +0100
committerGitHub <noreply@github.com>2022-04-15 12:58:27 +0200
commit610fc84f3e41a49b6569a22d729d4bd999094346 (patch)
treee858aee33491518fd2ffc50fdc85024ad443f613
parent247d26b4b50df8a068b9bfbb412a29f0c9f6a97b (diff)
ReactiveObject: Handle case when oldValue is null (#3268)1.1.103
-rw-r--r--Ryujinx.Common/ReactiveObject.cs2
1 files changed, 1 insertions, 1 deletions
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<T>(oldValue, value));
}