Minor improvements to Java director:except patch
This commit is contained in:
parent
9237c4553c
commit
97fd20a58d
2 changed files with 3 additions and 2 deletions
|
|
@ -38,8 +38,9 @@ class string;
|
|||
|
||||
%typemap(directorout) string
|
||||
%{ if(!$input) {
|
||||
if (!jenv->ExceptionCheck())
|
||||
if (!jenv->ExceptionCheck()) {
|
||||
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null string");
|
||||
}
|
||||
return $null;
|
||||
}
|
||||
const char *$1_pstr = (const char *)jenv->GetStringUTFChars($input, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue