make sure we do a value check

This commit is contained in:
Jonathan Lipps
2014-06-20 16:57:56 -07:00
parent f0795b8880
commit 7daa0bfe7f

View File

@@ -235,7 +235,7 @@ iOSController.getSourceForElementForXML = function (ctx, cb) {
if (err) return cb(err);
// TODO: all this json/xml logic is very expensive, we need
// to use a SAX parser instead.
if (res.value) res.value = JSON.stringify(res.value);
if (res && res.value) res.value = JSON.stringify(res.value);
_cb(err, res);
};
if (!ctx) {