summaryrefslogtreecommitdiff
path: root/numpy/core/defchararray.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/defchararray.py')
-rw-r--r--numpy/core/defchararray.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py
index 35d206de7..80822328c 100644
--- a/numpy/core/defchararray.py
+++ b/numpy/core/defchararray.py
@@ -151,7 +151,7 @@ class chararray(ndarray):
for k, val in enumerate(myiter):
newval = []
for chk in val[1:]:
- if chk.dtype is object_ and chk.item() is None:
+ if not chk or (chk.dtype is object_ and chk.item() is None):
break
newval.append(chk)
this_str = val[0].rstrip('\x00')