Fixed bug in iCustom when parameters are null or empty

This commit is contained in:
vdemydiuk
2016-01-07 01:30:25 +02:00
parent 31b8412300
commit 34946572bf
+4 -1
View File
@@ -855,7 +855,10 @@ namespace MtApi
var commandParameters = new ArrayList { symbol, timeframe, name };
int arraySize = parameters != null ? parameters.Length : 0;
commandParameters.Add(arraySize);
commandParameters.AddRange(parameters);
if (arraySize > 0)
{
commandParameters.AddRange(parameters);
}
commandParameters.Add(mode);
commandParameters.Add(shift);