Skip to content

Commit

Permalink
#58: Fix crash when a game has a null name
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Aug 11, 2023
1 parent dad5487 commit 4af420b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## Unreleased

* Fixed:
* Crash when changing plugin settings if some games had a null name.

## v0.13.1 (2023-08-10)

* Fixed:
Expand Down
2 changes: 1 addition & 1 deletion src/LudusaviPlaynite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,7 @@ private List<ApiBackup> GetBackups(Game game)

private V GetDictValue<K, V>(Dictionary<K, V> dict, K key, V fallback)
{
if (dict == null)
if (dict == null || key == null)
{
return fallback;
}
Expand Down

0 comments on commit 4af420b

Please sign in to comment.