mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Prevent ICommander-generated subcommand trees from generating an exception
when the tree root command is executes without another verb following it. Fixes Mantis #3258
This commit is contained in:
@@ -358,7 +358,12 @@ namespace OpenSim.Framework.Console
|
||||
if (ci.fn.Count == 0)
|
||||
return new string[0];
|
||||
foreach (CommandDelegate fn in ci.fn)
|
||||
fn(ci.module, result);
|
||||
{
|
||||
if (fn != null)
|
||||
fn(ci.module, result);
|
||||
else
|
||||
return new string[0];
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user