Avoid exception if manifest is malformed

pull/32/head
Pat Hartl 2023-11-10 21:45:09 -06:00
parent 47bb054fd1
commit bb980cc063
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ namespace LANCommander.PlaynitePlugin
public void UpdateGame(SDK.GameManifest manifest)
{
var game = PlayniteApi.Database.Games.First(g => g.GameId == manifest.Id.ToString());
var game = PlayniteApi.Database.Games.FirstOrDefault(g => g.GameId == manifest?.Id.ToString());
if (game == null)
return;