mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-21 10:11:13 +02:00
misc: chore: Fix possible System.NullReferenceExceptions
This commit is contained in:
@@ -2251,7 +2251,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||
switch (operationOutcome)
|
||||
{
|
||||
case XCIFileTrimmer.OperationOutcome.Successful:
|
||||
if (Application.Current.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
|
||||
if (Application.Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
|
||||
{
|
||||
if (desktop.MainWindow is MainWindow mainWindow)
|
||||
mainWindow.LoadApplications();
|
||||
|
||||
Reference in New Issue
Block a user