mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-09 17:01:02 +00:00
Fixed bug in iCustom when parameters are null or empty
This commit is contained in:
@@ -855,7 +855,10 @@ namespace MtApi
|
|||||||
var commandParameters = new ArrayList { symbol, timeframe, name };
|
var commandParameters = new ArrayList { symbol, timeframe, name };
|
||||||
int arraySize = parameters != null ? parameters.Length : 0;
|
int arraySize = parameters != null ? parameters.Length : 0;
|
||||||
commandParameters.Add(arraySize);
|
commandParameters.Add(arraySize);
|
||||||
commandParameters.AddRange(parameters);
|
if (arraySize > 0)
|
||||||
|
{
|
||||||
|
commandParameters.AddRange(parameters);
|
||||||
|
}
|
||||||
commandParameters.Add(mode);
|
commandParameters.Add(mode);
|
||||||
commandParameters.Add(shift);
|
commandParameters.Add(shift);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user