misc: chore: Fix possible NullReferenceExceptions, suppress warnings

This commit is contained in:
KeatonTheBot committed 2025-12-13 13:32:49 -06:00
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;
}
}
}