Skip to content

Commit 9349b6f

Browse files
Micah Bulemarcbachmann
authored andcommitted
Added null checker
1 parent a0f4500 commit 9349b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pdf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ PDF.prototype.exec = function PdfExec (callback) {
121121
// Ignore if code has a value of 0 since that means PhantomJS has executed and exited successfully.
122122
// Also, as per your script and standards, having a code value of 1 means one can always assume that
123123
// an error occured.
124-
if (typeof code !== 'undefined' && code !== 0) {
124+
if ((typeof code !== 'undefined' && code !== null) && code !== 0) {
125125

126126
var error = null;
127127

0 commit comments

Comments
 (0)