Prevent ICommander-generated subcommand trees from generating an exception
when the tree root command is executes without another verb following it. Fixes Mantis #32580.6.4-rc1
parent
11e1948b57
commit
3ad2fef2d3
|
@ -358,7 +358,12 @@ namespace OpenSim.Framework.Console
|
||||||
if (ci.fn.Count == 0)
|
if (ci.fn.Count == 0)
|
||||||
return new string[0];
|
return new string[0];
|
||||||
foreach (CommandDelegate fn in ci.fn)
|
foreach (CommandDelegate fn in ci.fn)
|
||||||
fn(ci.module, result);
|
{
|
||||||
|
if (fn != null)
|
||||||
|
fn(ci.module, result);
|
||||||
|
else
|
||||||
|
return new string[0];
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue