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

View File

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