aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Console/ConsoleBase.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-04-23 18:41:39 +0000
committerTeravus Ovares2008-04-23 18:41:39 +0000
commitd194f21a5dbca5b156fc89572ce286e8af00d294 (patch)
treeadb2c3bb5d770f1d55c55474ceb6f25975e6e09f /OpenSim/Framework/Console/ConsoleBase.cs
parent* Implement proper emptying of trashcan on standalone (diff)
downloadopensim-SC-d194f21a5dbca5b156fc89572ce286e8af00d294.zip
opensim-SC-d194f21a5dbca5b156fc89572ce286e8af00d294.tar.gz
opensim-SC-d194f21a5dbca5b156fc89572ce286e8af00d294.tar.bz2
opensim-SC-d194f21a5dbca5b156fc89572ce286e8af00d294.tar.xz
* Fix a console issue where pressing return on some operating systems cause the console to crash and complain about 0 regex matches.
Diffstat (limited to 'OpenSim/Framework/Console/ConsoleBase.cs')
-rw-r--r--OpenSim/Framework/Console/ConsoleBase.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Framework/Console/ConsoleBase.cs b/OpenSim/Framework/Console/ConsoleBase.cs
index 1d92ed1..f6d8ebd 100644
--- a/OpenSim/Framework/Console/ConsoleBase.cs
+++ b/OpenSim/Framework/Console/ConsoleBase.cs
@@ -376,6 +376,10 @@ namespace OpenSim.Framework.Console
376 char[] delims = {' ', '"'}; 376 char[] delims = {' ', '"'};
377 MatchCollection matches = Extractor.Matches(cmdline); 377 MatchCollection matches = Extractor.Matches(cmdline);
378 // Get matches 378 // Get matches
379
380 if (matches.Count == 0)
381 return;
382
379 string cmd = matches[0].Value.Trim(delims); 383 string cmd = matches[0].Value.Trim(delims);
380 string[] cmdparams = new string[matches.Count - 1]; 384 string[] cmdparams = new string[matches.Count - 1];
381 385