From bec9280b66e77f61f29989862aa4acee7d79e55a Mon Sep 17 00:00:00 2001 From: Michael James Date: Mon, 15 Oct 2018 14:52:15 -0600 Subject: [PATCH] fix possible null return in StringDataRecord --- .../uf/common/datastorage/records/StringDataRecord.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/StringDataRecord.py b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/StringDataRecord.py index c8eef9b..b1ae8c9 100644 --- a/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/StringDataRecord.py +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/StringDataRecord.py @@ -30,8 +30,8 @@ class StringDataRecord(AbstractDataRecord): else: from pypies.impl.H5pyDataStore import vlen_str_type as dtype #dtype.set_strpad(h5t.STR_NULLTERM) - numpyData = numpy.asarray(self.getStringData(), dtype) - return numpyData + return numpy.asarray(self.getStringData(), dtype) + return self.numpyData def putDataObject(self, obj): self.setStringData(obj)