Skip to content

Commit

Permalink
Null check property value
Browse files Browse the repository at this point in the history
  • Loading branch information
kwsch committed Jul 15, 2018
1 parent 46ece28 commit b749db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PKHeX.WinForms/Subforms/PKM Editors/BatchEditor.cs
Expand Up @@ -86,7 +86,7 @@ private void CB_Property_SelectedIndexChanged(object sender, EventArgs e)
L_PropType.Text = BatchEditing.GetPropertyType(CB_Property.Text, CB_Format.SelectedIndex);
if (BatchEditing.TryGetHasProperty(pkmref, CB_Property.Text, out var pi))
{
L_PropValue.Text = pi.GetValue(pkmref).ToString();
L_PropValue.Text = pi.GetValue(pkmref)?.ToString();
L_PropType.ForeColor = L_PropValue.ForeColor; // reset color
}
else // no property, flag
Expand Down

0 comments on commit b749db1

Please sign in to comment.