Prevent crash if the particular property has not been defined
This commit is contained in:
parent
f1a8d0fc31
commit
e1f7c7dae7
@ -18,11 +18,15 @@ namespace UniversalEditor.Editors.Web.StyleSheet
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
object[] FontSizes = (base.Configuration.Properties["FontSizes"].Value as object[]);
|
||||
foreach (object FontSizeO in FontSizes)
|
||||
UniversalEditor.ObjectModels.PropertyList.Property propFontSizes = base.Configuration.Properties["FontSizes"];
|
||||
if (propFontSizes != null)
|
||||
{
|
||||
string FontSize = FontSizeO.ToString();
|
||||
txtFontSize.Items.Add(FontSize);
|
||||
object[] FontSizes = (propFontSizes.Value as object[]);
|
||||
foreach (object FontSizeO in FontSizes)
|
||||
{
|
||||
string FontSize = FontSizeO.ToString();
|
||||
txtFontSize.Items.Add(FontSize);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user