summaryrefslogtreecommitdiff
path: root/src/jvm
diff options
context:
space:
mode:
Diffstat (limited to 'src/jvm')
-rw-r--r--src/jvm/jvm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jvm/jvm.c b/src/jvm/jvm.c
index 15a925e..49a6da8 100644
--- a/src/jvm/jvm.c
+++ b/src/jvm/jvm.c
@@ -2378,7 +2378,8 @@ jvm_get_native_method(struct jvm *jvm, const char *klass, const char *method)
void
jvm_release(struct jvm *jvm)
{
- assert(jvm);
+ if (!jvm)
+ return;
for (size_t i = 0; i < ARRAY_SIZE(jvm->objects); ++i)
jvm_object_release(&jvm->objects[i]);