From 30b22ce6ba10c78ec5f3f9e44402ca07d4281d99 Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Mon, 6 Jan 2025 08:02:37 -0600 Subject: [PATCH] UI: fix nullref --- src/Ryujinx/Utilities/Compat/CompatibilityCsv.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx/Utilities/Compat/CompatibilityCsv.cs b/src/Ryujinx/Utilities/Compat/CompatibilityCsv.cs index 4abe7465e..a3f9fc62d 100644 --- a/src/Ryujinx/Utilities/Compat/CompatibilityCsv.cs +++ b/src/Ryujinx/Utilities/Compat/CompatibilityCsv.cs @@ -35,8 +35,9 @@ namespace Ryujinx.Ava.Utilities.Compat IssueNumber = row[header.IndexOf("issue_number")].Parse(); var titleIdRow = row[header.IndexOf("extracted_game_id")].ToString(); - if (!string.IsNullOrEmpty(titleIdRow)) - TitleId = titleIdRow; + TitleId = !string.IsNullOrEmpty(titleIdRow) + ? titleIdRow + : default(Optional); var issueTitleRow = row[header.IndexOf("issue_title")].ToString(); if (TitleId.HasValue)