mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-31 12:37:47 +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 };
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user