diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-05-07 15:57:38 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-05-07 15:57:38 (GMT) |
commit | 14a2c6dab00ab8ffff4c37b6d088d332bc6abd6c (patch) | |
tree | 8cec7da41a5c7b728dc3d796ebdac0b85ff46a9d /plugins/dex/python | |
parent | 998f0697355ddfb17c5828c3ef236a5c795ee191 (diff) |
Kept methods of annotated classes during loading.
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; |