This showed up as a warning when compiling. The incorrect NULL check in NTNDArray::getValueSize() would result in NTNDArray::getValueSize() always returning 0, or crashing if there is no stored value.
As a result, it looks like NTNDArray::isValid() would almost always return false, unless compressedSize is also 0:
This showed up as a warning when compiling. The incorrect NULL check in
NTNDArray::getValueSize()
would result inNTNDArray::getValueSize()
always returning 0, or crashing if there is no stored value.As a result, it looks like
NTNDArray::isValid()
would almost always return false, unlesscompressedSize
is also 0: