mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-07 15:48:55 +02:00
misc: chore: Fix possible NullReferenceExceptions, suppress warnings
This commit is contained in:
@@ -78,7 +78,9 @@ namespace Ryujinx.Memory
|
||||
}
|
||||
}
|
||||
|
||||
return new ReadOnlySequence<byte>(first, 0, last, (int)(size - last.RunningIndex));
|
||||
return first != null
|
||||
? new ReadOnlySequence<byte>(first, 0, last, (int)(size - last.RunningIndex))
|
||||
: default;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user