From d071c4744265c22c84ce6315fd7f940347612081 Mon Sep 17 00:00:00 2001 From: jgould Date: Wed, 3 Aug 2016 15:06:33 -0400 Subject: [PATCH] convert to string array --- src/matrix/vector_util.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/matrix/vector_util.js b/src/matrix/vector_util.js index 5e2bfac..3993f74 100644 --- a/src/matrix/vector_util.js +++ b/src/matrix/vector_util.js @@ -182,6 +182,9 @@ morpheus.VectorUtil.maybeConvertToStringArray = function (vector, delim) { for (var i = 0, nrows = vector.size(); i < nrows; i++) { var s = vector.getValue(i); if (s != null) { + if (!s.split) { + return false; + } var tokens = s.split(regex); newValues.push(tokens); if (!found && tokens.length > 1) { -- GitLab