Skip to content

Commit

Permalink
Fix issue where response is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainVialard authored Apr 4, 2018
1 parent 6729ad9 commit 7940fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ErrorHandler.gs.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function expBackoff(func) {


// Handle retries on UrlFetch calls with muteHttpExceptions
if (noError && typeof response.getResponseCode === "function") {
if (noError && response && typeof response.getResponseCode === "function") {
isUrlFetchResponse = true;

var responseCode = response.getResponseCode();
Expand Down

0 comments on commit 7940fb3

Please sign in to comment.