[Binding java] return empty list for NULL GList value, not null

This commit is contained in:
Benjamin Dauvergne 2010-07-16 19:34:33 +00:00
parent 6b48a72943
commit 19372c88c1
1 changed files with 1 additions and 1 deletions

View File

@ -819,7 +819,7 @@ protected static native void destroy(long cptr);
print >> fd, ' if (arr != null)'
print >> fd, ' return Arrays.asList(arr);'
print >> fd, ' else'
print >> fd, ' return null;'
print >> fd, ' return new ArrayList(0);'
print >> fd, ' }'
print >> fd, ' public void addTo%s(%s value) {' % (jname,jtype)
print >> fd, ' LassoJNI.%s_add(this, value);' % prefix