Fix Java directorargout typemap crash when argument pointer is null
This commit is contained in:
parent
91e9743014
commit
7eeffe698c
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ There are no char *OUTPUT typemaps, however you can apply the signed char * type
|
||||||
{
|
{
|
||||||
JNITYPE $1_jvalue;
|
JNITYPE $1_jvalue;
|
||||||
JCALL4(Get##JAVATYPE##ArrayRegion, jenv, $input, 0, 1, &$1_jvalue);
|
JCALL4(Get##JAVATYPE##ArrayRegion, jenv, $input, 0, 1, &$1_jvalue);
|
||||||
*$result = ($*1_ltype)$1_jvalue;
|
if ($result) *$result = ($*1_ltype)$1_jvalue;
|
||||||
}
|
}
|
||||||
|
|
||||||
%typemap(typecheck) TYPE *OUTPUT = TYPECHECKTYPE;
|
%typemap(typecheck) TYPE *OUTPUT = TYPECHECKTYPE;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue