mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Added null check to NexusDownloader:GetDownloaderState
This commit is contained in:
parent
6c1177d8e1
commit
5b1ea3d448
@ -19,7 +19,8 @@ namespace Wabbajack.Lib.Downloaders
|
|||||||
if (general.modID != null && general.fileID != null && general.gameName != null)
|
if (general.modID != null && general.fileID != null && general.gameName != null)
|
||||||
{
|
{
|
||||||
var name = (string)general.gameName;
|
var name = (string)general.gameName;
|
||||||
var game = GameRegistry.GetByMO2ArchiveName(name).Game;
|
var gameMeta = GameRegistry.GetByMO2ArchiveName(name);
|
||||||
|
var game = gameMeta != null ? GameRegistry.GetByMO2ArchiveName(name).Game : GameRegistry.GetByNexusName(name).Game;
|
||||||
var info = new NexusApiClient().GetModInfo(game, general.modID);
|
var info = new NexusApiClient().GetModInfo(game, general.modID);
|
||||||
return new State
|
return new State
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user