Skip to content

Commit

Permalink
Fix null reference exception in Installation History
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Dec 11, 2023
1 parent ca6c39c commit 296f7cc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions GUI/Main/MainHistory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ private void InstallationHistory_Done()

private void InstallationHistory_OnSelectedModuleChanged(CkanModule m)
{
ActiveModInfo = new GUIMod(m, repoData,
RegistryManager.Instance(CurrentInstance, repoData).registry,
CurrentInstance.VersionCriteria(),
null,
configuration.HideEpochs,
configuration.HideV);
ActiveModInfo = m == null
? null
: new GUIMod(m, repoData,
RegistryManager.Instance(CurrentInstance, repoData).registry,
CurrentInstance.VersionCriteria(),
null,
configuration.HideEpochs,
configuration.HideV);
}

}
Expand Down

0 comments on commit 296f7cc

Please sign in to comment.