OSDN Git Service

History invocation in Molby Console may crash when nil is the result
authortoshinagata1964 <toshinagata1964@a2be9bc6-48de-4e38-9406-05402d4bc13c>
Fri, 28 Mar 2014 01:26:56 +0000 (01:26 +0000)
committertoshinagata1964 <toshinagata1964@a2be9bc6-48de-4e38-9406-05402d4bc13c>
Fri, 28 Mar 2014 01:26:56 +0000 (01:26 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/molby/trunk@514 a2be9bc6-48de-4e38-9406-05402d4bc13c

wxSources/ConsoleFrame.cpp

index 213ec07..a8e3775 100755 (executable)
@@ -438,6 +438,8 @@ ConsoleFrame::ShowHistory(bool up, bool option)
                        }
                }
        }
+       if (p == NULL)
+               p = "";
        textCtrl->Replace(historyPos, textCtrl->GetLastPosition(), wxT(""));
        SetConsoleColor(option ? 1 : 3);
        while (isspace(*p))