Skip to content

Commit

Permalink
Fix a small bug where an NPE can occur if a closeable is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
fjy committed Jan 17, 2015
1 parent 38c155e commit 52f65b1
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 52f65b1

Please sign in to comment.