summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-02-19 12:20:35 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-02-19 12:20:35 +0200
commit68b7bd2d2d16bee66f3563977ab64fc9bb3172de (patch)
treea646a47e7803585bf381746aad3832c4e77288d1 /src
parentacf1a74bf379c0508f6a7579443d0583de5eb025 (diff)
jvm: consistency, jvm_release no-op if NULL
Diffstat (limited to 'src')
-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]);