mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-12 10:15:52 +00:00
Orchid: fix NPE when unbuilt circuit is closed
This commit is contained in:
parent
50ad0e7666
commit
887d6b0330
@ -229,7 +229,10 @@ public abstract class CircuitImpl implements Circuit, DashboardRenderable {
|
||||
}
|
||||
|
||||
public void destroyCircuit() {
|
||||
io.destroyCircuit();
|
||||
// We might not have bound this circuit yet
|
||||
if (io != null) {
|
||||
io.destroyCircuit();
|
||||
}
|
||||
circuitManager.removeActiveCircuit(this);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user