mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Protect pdf-js-wrapper from NPE error (#5658)
GitOrigin-RevId: 55bdc27afb7dd9ea55751ae0bd89a2498f9f2ce6
This commit is contained in:
parent
b90b7c92ac
commit
a5fd363938
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ export default class PDFJSWrapper {
|
|||
})
|
||||
.catch(error => {
|
||||
if (this.loadDocumentTask) {
|
||||
if (error.name !== 'MissingPDFException') {
|
||||
if (!error || error.name !== 'MissingPDFException') {
|
||||
captureMessage(`pdf preview error ${error}`)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue