mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-08 08:48:59 +02:00
misc: chore: Fix numerous NullReferenceExceptions, InvalidOperationExceptions
This commit is contained in:
@@ -84,7 +84,7 @@ namespace Ryujinx.Ava
|
||||
if (result == UserResult.Yes)
|
||||
{
|
||||
var path = Environment.ProcessPath;
|
||||
var proc = Process.Start(path, CommandLineState.Arguments);
|
||||
var proc = Process.Start(path ?? string.Empty, CommandLineState.Arguments);
|
||||
desktop.Shutdown();
|
||||
Environment.Exit(0);
|
||||
}
|
||||
@@ -144,7 +144,7 @@ namespace Ryujinx.Ava
|
||||
|
||||
public static ThemeVariant DetectSystemTheme()
|
||||
{
|
||||
if (Current is App app)
|
||||
if (Current is App { PlatformSettings: not null } app)
|
||||
{
|
||||
var colorValues = app.PlatformSettings.GetColorValues();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user