Merge pull request #1050 from druid-io/fix-rt

Fix a small bug where an NPE can occur if a closeable is not present
This commit is contained in:
Xavier Léauté 2015-01-19 10:00:56 -08:00
commit 1fe79135dc
1 changed files with 3 additions and 1 deletions

View File

@ -288,7 +288,9 @@ public class RealtimePlumber implements Plumber
}
finally {
try {
closeable.close();
if (closeable != null) {
closeable.close();
}
}
catch (IOException e) {
throw Throwables.propagate(e);