Skip to content

Commit

Permalink
Merge pull request #148 from macacajs/issue_714
Browse files Browse the repository at this point in the history
  • Loading branch information
xudafeng authored Oct 12, 2017
2 parents 2826c64 + 3bf7bde commit 2c586b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/android.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ exports.dumpXMLAndScreenShot = function *() {
return node;
};

var origin = _.filter(hierarchy.node, i => i.package !== 'com.android.systemui');
var origin = _.filter(hierarchy.node, i => i !== null && typeof i === 'object' && i.package !== 'com.android.systemui');
var data = adaptor(origin[0]);
fs.writeFileSync(xmlFilePath, JSON.stringify(data), 'utf8');
const remoteFile = `${ADB.ANDROID_TMP_DIR}/screenshot.png`;
Expand Down

0 comments on commit 2c586b0

Please # to comment.