mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 17:21:15 +01:00
misc: chore: Fix possible NullReferenceExceptions, suppress warnings
This commit is contained in:
1 parent
9920619ff6
commit
c70f692324
29 files changed
+100
-80
No files matched your search
@@ -354,7 +354,9 @@ namespace Ryujinx.Tests.Common.Extensions
|
||||
index += nextSegmentLength;
|
||||
}
|
||||
|
||||
return new ReadOnlySequence<byte>(first, 0, last, (int)(memory.Length - last.RunningIndex));
|
||||
return first != null
|
||||
? new ReadOnlySequence<byte>(first, 0, last, (int)(memory.Length - last.RunningIndex))
|
||||
: default;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user