Index: /trunk/src/VBox/Main/glue/glue-java.xsl
===================================================================
--- /trunk/src/VBox/Main/glue/glue-java.xsl	(revision 50416)
+++ /trunk/src/VBox/Main/glue/glue-java.xsl	(revision 50417)
@@ -1600,5 +1600,5 @@
           <xsl:when test="@dir='in'">
             <xsl:if test="(@safearray='yes') and not(@type = 'octet')">
-              <xsl:value-of select="concat(@name, '.size(), ')" />
+              <xsl:value-of select="concat(@name, ' != null ? ', @name, '.size() : 0, ')" />
             </xsl:if>
             <xsl:variable name="unwrapped">
