diff --git a/OpenSim/Framework/Console/ConsoleBase.cs b/OpenSim/Framework/Console/ConsoleBase.cs index 1d92ed1d07..f6d8ebd592 100644 --- a/OpenSim/Framework/Console/ConsoleBase.cs +++ b/OpenSim/Framework/Console/ConsoleBase.cs @@ -376,6 +376,10 @@ namespace OpenSim.Framework.Console char[] delims = {' ', '"'}; MatchCollection matches = Extractor.Matches(cmdline); // Get matches + + if (matches.Count == 0) + return; + string cmd = matches[0].Value.Trim(delims); string[] cmdparams = new string[matches.Count - 1];