diff --git a/src/client/spark/view/Spark/Ladder/LadderGridHost.cs b/src/client/spark/view/Spark/Ladder/LadderGridHost.cs index 4a06a4172..7369889d2 100644 --- a/src/client/spark/view/Spark/Ladder/LadderGridHost.cs +++ b/src/client/spark/view/Spark/Ladder/LadderGridHost.cs @@ -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; }