Commit d4cd41ea authored by Ken Martin's avatar Ken Martin

Fix dereference of potential zero length vector

The usual vector[0] stuff
parent 7508d0ac
......@@ -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)
{
++numberOfComponentsWithProminentValues;
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