mirror of
https://github.com/apache/druid.git
synced 2025-03-01 14:59:08 +00:00
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,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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user