ladder check for null depth in _size_from_row

This commit is contained in:
John Colvin committed 2018-02-26 19:03:55 -05:00
1 parent 5dedd45a35
commit e8a49ecf18
1 file changed
+1 -1
@@ -157,7 +157,7 @@ namespace mbts.spark {
_price_for_row(_row_for_point(point));
static ushort? _size_from_row(int row, double[] price_list, NativePriceSize[] depth, ContractSpecificationImmutable spec) {
if (price_list == null) return null;
if (price_list == null || depth == null) return null;
else return row <= price_list.Length ? _size_from_price(price_list[row], depth, spec) : null;
}