mirror of
https://github.com/appium/appium.git
synced 2026-02-09 11:18:51 -06:00
make sure we do a value check
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user