mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-11 18:38:53 +02:00
misc: chore: Fix possible NullReferenceExceptions, suppress warnings
This commit is contained in:
@@ -83,9 +83,9 @@ namespace Ryujinx.HLE.HOS.Services.Nv
|
||||
ConstructorInfo constructor = deviceFileClass.GetConstructor([typeof(ServiceCtx), typeof(IVirtualMemoryManager), typeof(ulong)
|
||||
]);
|
||||
|
||||
NvDeviceFile deviceFile = (NvDeviceFile)constructor.Invoke([context, _clientMemory, _owner]);
|
||||
NvDeviceFile deviceFile = (NvDeviceFile)constructor?.Invoke([context, _clientMemory, _owner]);
|
||||
|
||||
deviceFile.Path = path;
|
||||
deviceFile?.Path = path;
|
||||
|
||||
fd = DeviceFileIdRegistry.Add(deviceFile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user