Skip to content

Commit

Permalink
debug null log
Browse files Browse the repository at this point in the history
  • Loading branch information
sbtaylor15 committed Dec 11, 2017
1 parent 93661df commit 4a8384a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vars/deployhub.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ class deployhub {
}

def data = doGetHttpRequestWithJson("${url}/dmadminweb/API/log/" + deployid);
if (data.size() == 0)
if (data == null || data.size() == 0)
return [false, "Could not get log #" + deployid];

def lines = data['logoutput'];
Expand Down

0 comments on commit 4a8384a

Please sign in to comment.