mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Avoid NPE in close
This commit is contained in:
@@ -681,7 +681,7 @@ public abstract class VanillaChronicleHash<K,
|
||||
|
||||
@Override
|
||||
public final void close() {
|
||||
if (resources.releaseManually()) {
|
||||
if (resources != null && resources.releaseManually()) {
|
||||
cleanupOnClose();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user