mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix possible null assignment to non-nullable entities.
This commit is contained in:
@@ -571,6 +571,11 @@ public sealed partial class Udif
|
||||
}
|
||||
|
||||
buffer = new byte[SECTOR_SIZE];
|
||||
|
||||
// Shall not happen
|
||||
if(data is null)
|
||||
return ErrorNumber.InvalidArgument;
|
||||
|
||||
Array.Copy(data, relOff, buffer, 0, SECTOR_SIZE);
|
||||
|
||||
if(_sectorCache.Count >= MAX_CACHED_SECTORS)
|
||||
|
||||
Reference in New Issue
Block a user