Skip to content

Commit

Permalink
UI: fix nullref
Browse files Browse the repository at this point in the history
  • Loading branch information
GreemDev committed Jan 6, 2025
1 parent 9acecc9 commit 30b22ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Ryujinx/Utilities/Compat/CompatibilityCsv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ public CompatibilityEntry(SepReaderHeader header, SepReader.Row row)
IssueNumber = row[header.IndexOf("issue_number")].Parse<int>();

var titleIdRow = row[header.IndexOf("extracted_game_id")].ToString();
if (!string.IsNullOrEmpty(titleIdRow))
TitleId = titleIdRow;
TitleId = !string.IsNullOrEmpty(titleIdRow)
? titleIdRow
: default(Optional<string>);

var issueTitleRow = row[header.IndexOf("issue_title")].ToString();
if (TitleId.HasValue)
Expand Down

0 comments on commit 30b22ce

Please sign in to comment.