ActionVariable actionVar.GetVariables can return null.
This commit is contained in:
parent
416acc90f8
commit
47cd94dfff
|
@ -2162,9 +2162,13 @@ namespace AsterNET.Manager
|
||||||
}
|
}
|
||||||
|
|
||||||
IActionVariable actionVar = action as IActionVariable;
|
IActionVariable actionVar = action as IActionVariable;
|
||||||
if(actionVar != null && actionVar.GetVariables().Count > 0)
|
if ( actionVar != null )
|
||||||
{
|
{
|
||||||
sb.Append(string.Concat("Variable: ", Helper.JoinVariables(actionVar.GetVariables(), VAR_DELIMITER, "="), Common.LINE_SEPARATOR));
|
var variables = actionVar.GetVariables();
|
||||||
|
if ( variables != null && variables.Count > 0 )
|
||||||
|
{
|
||||||
|
sb.Append( string.Concat( "Variable: ", Helper.JoinVariables( actionVar.GetVariables(), VAR_DELIMITER, "=" ), Common.LINE_SEPARATOR ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sb.Append(Common.LINE_SEPARATOR);
|
sb.Append(Common.LINE_SEPARATOR);
|
||||||
|
|
Loading…
Reference in a new issue