mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
fix: guard against CommandInfo, Manifest ever becoming null
This commit is contained in:
parent
28e9d5f156
commit
d1c22f7dd6
3 changed files with 6 additions and 3 deletions
|
|
@ -2174,7 +2174,10 @@ internal class PluginInstallerWindow : Window, IDisposable
|
|||
if (plugin.IsLoaded)
|
||||
{
|
||||
var commands = commandManager.Commands
|
||||
.Where(cInfo => cInfo.Value.ShowInHelp && cInfo.Value.LoaderAssemblyName == plugin.Manifest.InternalName)
|
||||
.Where(cInfo =>
|
||||
cInfo.Value != null &&
|
||||
cInfo.Value.ShowInHelp &&
|
||||
cInfo.Value.LoaderAssemblyName == plugin.Manifest.InternalName)
|
||||
.ToArray();
|
||||
|
||||
if (commands.Any())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue