mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 21:07:10 -05:00
Null check property value
EggMetDate, if none set, returns null. https://projectpokemon.org/home/forums/topic/46265-batch-editor-bug-systemnullreferenceexception/
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user