fix flashrom yet again

This commit is contained in:
zefie
2021-08-10 01:17:39 -04:00
parent 28adff5a59
commit 5083b51c6b
5 changed files with 7 additions and 6 deletions

View File

@@ -238,7 +238,8 @@ class WTVSec {
* #returns {Buffer} JS Buffer object
*/
wordArrayToBuffer(wordArray) {
return new Buffer.from(wordArray.toString(CryptoJS.enc.Hex), 'hex');
if (wordArray) return new Buffer.from(wordArray.toString(CryptoJS.enc.Hex), 'hex');
else return null;
}
/**