diff options
Diffstat (limited to 'plugins/dex/python')
-rw-r--r-- | plugins/dex/python/method.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/dex/python/method.c b/plugins/dex/python/method.c index 4f35e1a..5a06403 100644 --- a/plugins/dex/python/method.c +++ b/plugins/dex/python/method.c @@ -100,7 +100,14 @@ static PyObject *py_dex_method_get_code_item(PyObject *self, void *closure) body = g_dex_method_get_dex_body(method); - result = translate_dex_method_body_to_python(body); + if (body == NULL) + { + result = Py_None; + Py_INCREF(result); + } + + else + result = translate_dex_method_body_to_python(body); return result; |