FpDebugServer: Fixed AV when a script contains an invalid command

git-svn-id: trunk@49178 -
This commit is contained in:
joost 2015-05-26 15:36:23 +00:00
parent 5da6a444bf
commit 56ac4902c2

View File

@ -43,7 +43,8 @@ begin
for i := 0 to FFileContents.Count-1 do
begin
ACommand := FInOutputProcessor.TextToCommand(FFileContents.Strings[i]);
FDebugThread.QueueCommand(ACommand);
if assigned(ACommand) then
FDebugThread.QueueCommand(ACommand);
if Terminated then
Break;
end;