3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 12:08:18 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-07-26 15:28:38 -07:00
parent 1d223b0403
commit 00a4f6ad3d

View file

@ -3965,6 +3965,8 @@ public class Context implements AutoCloseable {
long nCtx() long nCtx()
{ {
if (m_ctx == 0)
throw new Z3Exception("Context closed");
return m_ctx; return m_ctx;
} }
@ -4133,6 +4135,6 @@ public class Context implements AutoCloseable {
synchronized (creation_lock) { synchronized (creation_lock) {
Native.delContext(m_ctx); Native.delContext(m_ctx);
} }
m_ctx = null; m_ctx = 0;
} }
} }