From 7727ea23f6dda12f48657cdbcd1c206fb5913c7c Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 25 Apr 2015 00:35:22 -0700 Subject: [PATCH] More sanity checks for argument strings It just doesn't want to behave at all. Thanks BPSpike for reporting this edge case! --- PKX/f3-MemoryAmie.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKX/f3-MemoryAmie.cs b/PKX/f3-MemoryAmie.cs index 2c0d13400..af279449d 100644 --- a/PKX/f3-MemoryAmie.cs +++ b/PKX/f3-MemoryAmie.cs @@ -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;