mirror of https://github.com/apache/druid.git
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:
commit
1fe79135dc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue