Skip to content

Commit b49f6d6

Browse files
authored
added a null check to onlineManifest in VersionCheck.Resolvers so Resolvers don't throw exception when something goes wrong in FetchManifest (#89)
1 parent ad3f875 commit b49f6d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/ModManager/Dependencies/VersionCheck.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public override List<FloatMenuOption> Resolvers
4949
{
5050

5151
var options = Utilities.NewOptionsList;
52-
if ( !onlineManifest.downloadUri.NullOrEmpty() )
52+
if ( onlineManifest != null && !onlineManifest.downloadUri.NullOrEmpty() )
5353
options.Add( new FloatMenuOption( I18n.OpenDownloadUri( onlineManifest.downloadUri ),
5454
() => SteamUtility.OpenUrl( onlineManifest.downloadUri ) ) );
5555
else

0 commit comments

Comments
 (0)