mirror of
https://github.com/JHUAPL/AccumuloGraph.git
synced 2026-01-09 20:57:55 -05:00
Add null check on closing AccumuloBulkIngester
This commit is contained in:
@@ -229,6 +229,11 @@ public final class AccumuloBulkIngester {
|
||||
*/
|
||||
public void shutdown(boolean compact) throws AccumuloSecurityException,
|
||||
TableNotFoundException, AccumuloException {
|
||||
// Make sure this wasn't closed already.
|
||||
if (mtbw == null) {
|
||||
throw new RuntimeException("Ingester was already closed");
|
||||
}
|
||||
|
||||
mtbw.close();
|
||||
mtbw = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user