mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-18 05:46:41 +00:00
ReactiveObject: Handle case when oldValue is null (#3268)
This commit is contained in:
parent
247d26b4b5
commit
610fc84f3e
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ namespace Ryujinx.Common
|
||||||
|
|
||||||
_readerWriterLock.ReleaseWriterLock();
|
_readerWriterLock.ReleaseWriterLock();
|
||||||
|
|
||||||
if (!oldIsInitialized || !oldValue.Equals(_value))
|
if (!oldIsInitialized || oldValue == null || !oldValue.Equals(_value))
|
||||||
{
|
{
|
||||||
Event?.Invoke(this, new ReactiveEventArgs<T>(oldValue, value));
|
Event?.Invoke(this, new ReactiveEventArgs<T>(oldValue, value));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue