Skip to content

Commit

Permalink
More sanity checks for argument strings
Browse files Browse the repository at this point in the history
It just doesn't want to behave at all.
Thanks BPSpike for reporting this edge case!
  • Loading branch information
kwsch committed Apr 25, 2015
1 parent fa20293 commit 7727ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PKX/f3-MemoryAmie.cs
Expand Up @@ -388,7 +388,7 @@ private string getMemoryString(ComboBox m, ComboBox arg, ComboBox q, ComboBox f,
{
string result = "";
string nn = m_parent.TB_Nickname.Text;
string a = ((Util.cbItem)(arg.SelectedItem)).Text;
string a = ((Util.cbItem)(arg.SelectedItem) == null) ? arg.Text ?? "ERROR" : ((Util.cbItem)(arg.SelectedItem)).Text;
int mem = Util.getIndex(m);

bool enabled = false;
Expand Down

0 comments on commit 7727ea2

Please sign in to comment.