diff --git a/web/pdf_find_controller.js b/web/pdf_find_controller.js index 202c99700..d20a46c40 100644 --- a/web/pdf_find_controller.js +++ b/web/pdf_find_controller.js @@ -111,6 +111,9 @@ class PDFFindController { } executeCommand(cmd, state) { + if (!state) { + return; + } const pdfDocument = this._pdfDocument; if (this._state === null || this._shouldDirtyMatch(cmd, state)) {