mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 09:21:15 +01:00
ReactiveObject: Handle case when oldValue is null (#3268)
This commit is contained in:
1 parent
247d26b4b5
commit
610fc84f3e
1 file changed
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user