diff options
author | Teravus Ovares | 2008-04-23 18:41:39 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-04-23 18:41:39 +0000 |
commit | d194f21a5dbca5b156fc89572ce286e8af00d294 (patch) | |
tree | adb2c3bb5d770f1d55c55474ceb6f25975e6e09f /OpenSim/Framework/Console | |
parent | * Implement proper emptying of trashcan on standalone (diff) | |
download | opensim-SC_OLD-d194f21a5dbca5b156fc89572ce286e8af00d294.zip opensim-SC_OLD-d194f21a5dbca5b156fc89572ce286e8af00d294.tar.gz opensim-SC_OLD-d194f21a5dbca5b156fc89572ce286e8af00d294.tar.bz2 opensim-SC_OLD-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')
-rw-r--r-- | OpenSim/Framework/Console/ConsoleBase.cs | 4 |
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 | ||