Commit 1c35d1ae authored by Ken Martin's avatar Ken Martin Committed by Kitware Robot

Merge topic 'fix_bad_vector_deref'

d4cd41ea Fix dereference of potential zero length vector
Acked-by: Kitware Robot's avatarKitware Robot <>
Acked-by: David Thompson's avatarDavid Thompson <>
Merge-request: !6254
parents 911c8831 d4cd41ea
Pipeline #153316 running with stage
......@@ -738,7 +738,7 @@ void vtkAbstractArray::UpdateDiscreteValueSet(double uncertainty, double minimum
vtkInformationVector* iv;
for (c = 0; c < nc; ++c)
if (uniques[c].size() <= this->MaxDiscreteValues)
if (uniques[c].size() && uniques[c].size() <= this->MaxDiscreteValues)
iv = this->GetInformation()->Get(PER_COMPONENT());
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment