diff --git a/engine/src/flutter/lib/ui/painting/gradient.cc b/engine/src/flutter/lib/ui/painting/gradient.cc index 46d241984f1..06a75a4d5a3 100644 --- a/engine/src/flutter/lib/ui/painting/gradient.cc +++ b/engine/src/flutter/lib/ui/painting/gradient.cc @@ -60,7 +60,7 @@ void CanvasGradient::initRadial(double center_x, const tonic::Int32List& colors, const tonic::Float32List& color_stops, SkShader::TileMode tile_mode) { - FTL_DCHECK(colors.num_elements() * 2 == color_stops.num_elements() || + FTL_DCHECK(colors.num_elements() == color_stops.num_elements() || color_stops.data() == nullptr); static_assert(sizeof(SkColor) == sizeof(int32_t),