Fix Java directorargout typemap crash when argument pointer is null

This commit is contained in:
Bryan Atwood 2018-08-10 17:12:34 -07:00
commit 7eeffe698c

View file

@ -227,7 +227,7 @@ There are no char *OUTPUT typemaps, however you can apply the signed char * type
{
JNITYPE $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;