diff --git a/ExcelApp.js b/ExcelApp.js index e0c0a9d..db256e6 100644 --- a/ExcelApp.js +++ b/ExcelApp.js @@ -405,7 +405,7 @@ if (title) { temp.image.title = title.getValue(); } - temp.image.blob = this.mainObj.fileObj[filename].setName(filename.split("/").pop()) || null; + temp.image.blob = (this.mainObj.fileObj[filename] && this.mainObj.fileObj[filename].setName(filename.split("/").pop())) || null; temp.image.innerCell = temp.range.colOff === 0 && temp.range.rowOff === 0 ? true : false; } else if (sp) { temp.drawing = { diff --git a/README.md b/README.md index 4b5fb01..35daab0 100644 --- a/README.md +++ b/README.md @@ -745,5 +745,9 @@ There are no methods yet. - v1.2.1 (December 28, 2022) 1. Remove a bug in `ExcelApp`. - + +- v1.2.2 (January 30, 2024) + + 1. Remove a bug in `ExcelApp`. When the inserted image had no data, an error occurred. This issue was removed. + [TOP](#top)