Fix possible NULL deref in NTNDArray::getValueSize()

This commit is contained in:
JJL772
2024-06-21 16:47:54 -07:00
parent 7a2d264f2c
commit 453c267c9b

View File

@ -327,10 +327,8 @@ int64 NTNDArray::getValueSize()
{
int64 size = 0;
PVScalarArrayPtr storedValue = getValue()->get<PVScalarArray>();
if (!storedValue.get())
{
if (storedValue.get())
size = storedValue->getLength()*getValueTypeSize();
}
return size;
}