mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
Avoid NullPointerException if pulsarCache hasn't been initialized.
This commit is contained in:
parent
2fbf0b4ad3
commit
c15bd97c97
@ -78,6 +78,10 @@ public class PulsarActivity extends SimpleActivity implements ActivityDefObserve
|
|||||||
public void shutdownActivity() {
|
public void shutdownActivity() {
|
||||||
super.shutdownActivity();
|
super.shutdownActivity();
|
||||||
|
|
||||||
|
if (pulsarCache == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (PulsarSpace pulsarSpace : pulsarCache.getAssociatedPulsarSpace()) {
|
for (PulsarSpace pulsarSpace : pulsarCache.getAssociatedPulsarSpace()) {
|
||||||
pulsarSpace.shutdownPulsarSpace();
|
pulsarSpace.shutdownPulsarSpace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user