implement void return

This commit is contained in:
Mathieu Virbel 2013-03-13 19:12:33 +01:00
parent 8cf9542518
commit 46555de7b2
1 changed files with 3 additions and 1 deletions

View File

@ -264,7 +264,9 @@ cdef jobject convert_python_to_jobject(JNIEnv *j_env, definition, obj) except *:
cdef PythonJavaClass pc
cdef int index
if definition[0] == 'L':
if definition[0] == 'V':
return NULL
elif definition[0] == 'L':
if obj is None:
return NULL
elif isinstance(obj, basestring) and \