mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
throw
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1d223b0403
commit
00a4f6ad3d
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue