Skip to content

Commit

Permalink
Merge pull request #339 from jrslv/tasks-response-class-fix
Browse files Browse the repository at this point in the history
Condition fix
  • Loading branch information
jrslv committed Sep 28, 2015
2 parents 67b8c5d + 7b6c84a commit 6e59e10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public Boolean call() throws Exception {
String tasksEndPoint = "http://" + schedulerIpAddress + ":31100/v1/tasks";
LOGGER.debug("Fetching tasks on " + tasksEndPoint);
response = Unirest.get(tasksEndPoint).asJson();
if (nodesState.isEmpty()) {
if (nodesState == null || nodesState.isEmpty()) {
return response.getBody().getArray().length() == nodesCount;
} else {
if (response.getBody().getArray().length() == nodesCount) {
Expand Down

0 comments on commit 6e59e10

Please sign in to comment.