Skip to content

Commit 54becd1

Browse files
Fixing uncaught exception when request is empty.
1 parent 9334abc commit 54becd1

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)