char **STRING_ARRAY typemaps fixed to handle null pointers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13021 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
52fe61820a
commit
a0e21e82ca
3 changed files with 36 additions and 21 deletions
|
|
@ -45,6 +45,11 @@ public class java_lib_various_runme {
|
|||
if ( !langs[i].equals(newLangs[i]) )
|
||||
throw new RuntimeException("Languages verify failed " + i + " " + langs[i] + "|" + newLangs[i]);
|
||||
|
||||
// STRING_ARRAY null
|
||||
java_lib_various.setLanguages(null);
|
||||
if (java_lib_various.getLanguages() != null)
|
||||
throw new RuntimeException("languages should be null");
|
||||
|
||||
// STRING_RET test
|
||||
{
|
||||
String stringOutArray[] = { "" };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue