Commit 1d47731d authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Return None in PropertyMap.a if no array is available

parent f12d5416
......@@ -221,7 +221,10 @@ class PropertyMap(object):
return self.__map.get_array(n)
def __get_array(self):
return self.get_array()[:]
if self.get_array() != None:
return self.get_array()[:]
else:
return None
def __set_array(self, v):
self.get_array()[:] = v
......
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