0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-22 22:45:46 +00:00

ReactiveObject: Handle case when oldValue is null (#3268)

This commit is contained in:
merry 2022-04-15 11:58:27 +01:00 committed by GitHub
parent 247d26b4b5
commit 610fc84f3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));
}