File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ cdef class JavaClass(object):
30
30
args, ret = definition[1 :].split(' )' )
31
31
if args:
32
32
args = args.split(' ;' )
33
+ if args[- 1 ] == ' ' :
34
+ args.pop(- 1 )
33
35
else :
34
36
args = []
35
37
return ret, args
@@ -102,6 +104,8 @@ cdef class JavaClass(object):
102
104
if argtype == ' Ljava/lang/String' :
103
105
if isinstance (py_arg, basestring ):
104
106
j_args[index].l = self .j_env[0 ].NewStringUTF(self .j_env, < char * >< bytes> py_arg)
107
+ elif py_arg is None :
108
+ j_args[index].l = NULL
105
109
else :
106
110
raise Exception (" Not a correct type of string, must be an instance of str or unicode" )
107
111
else :
@@ -153,6 +157,8 @@ cdef class JavaMethod(object):
153
157
args, ret = definition[1 :].split(' )' )
154
158
if args:
155
159
args = args.split(' ;' )
160
+ if args[- 1 ] == ' ' :
161
+ args.pop(- 1 )
156
162
else :
157
163
args = []
158
164
self .definition_return = ret
You can’t perform that action at this time.
0 commit comments