Skip to content

Commit

Permalink
Fix NPE when control cluster is unreachable
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Jul 8, 2014
1 parent 1faf7e5 commit 5db1889
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,12 @@ private boolean validate()

// query has too many rows. Consider blacklisting.
if (controlResult.getState() == State.TOO_MANY_ROWS) {
testResult = new QueryResult(State.INVALID, null, null, ImmutableList.<List<Object>>of());
return false;
}
// query failed in the control
else if (controlResult.getState() != State.SUCCESS) {
testResult = new QueryResult(State.INVALID, null, null, ImmutableList.<List<Object>>of());
return true;
}

Expand Down

0 comments on commit 5db1889

Please sign in to comment.