Skip to content

Commit c6916ef

Browse files
committed
Merge pull request #74 from lucasvo-taulia/master
Fixing uncaught exception when response is empty.
2 parents 9334abc + 54becd1 commit c6916ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/jira.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor
230230

231231
if (body === undefined) {
232232
callback('Response body was undefined.');
233+
return;
233234
}
234235

235236
callback(null, JSON.parse(body));

0 commit comments

Comments
 (0)