Skip to content

Commit

Permalink
Merge pull request apache#1050 from druid-io/fix-rt
Browse files Browse the repository at this point in the history
Fix a small bug where an NPE can occur if a closeable is not present
  • Loading branch information
xvrl committed Jan 19, 2015
2 parents 38c155e + 52f65b1 commit 1fe7913
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ public QueryRunner<T> apply(FireHydrant input)
}
finally {
try {
closeable.close();
if (closeable != null) {
closeable.close();
}
}
catch (IOException e) {
throw Throwables.propagate(e);
Expand Down

0 comments on commit 1fe7913

Please sign in to comment.