mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-04-05 17:39:39 -04:00
Added null check for plugin settings.
This commit is contained in:
parent
23ab4f593d
commit
6ec420bdb9
@ -101,6 +101,8 @@ namespace Observatory.PluginManagement
|
|||||||
{
|
{
|
||||||
var settingNames = new Dictionary<PropertyInfo, string>();
|
var settingNames = new Dictionary<PropertyInfo, string>();
|
||||||
|
|
||||||
|
if (settings != null)
|
||||||
|
{
|
||||||
var properties = settings.GetType().GetProperties();
|
var properties = settings.GetType().GetProperties();
|
||||||
foreach (var property in properties)
|
foreach (var property in properties)
|
||||||
{
|
{
|
||||||
@ -114,6 +116,7 @@ namespace Observatory.PluginManagement
|
|||||||
settingNames.Add(property, attrib.DisplayName);
|
settingNames.Add(property, attrib.DisplayName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return settingNames;
|
return settingNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user