From 16417688ef874e55f27daafe5ddb2293a39a9423 Mon Sep 17 00:00:00 2001 From: Robert Antoni Buj i Gelonch Date: Mon, 29 Sep 2014 10:12:34 +0200 Subject: forms: Pass array of length equal to the size of the collection Change-Id: Id880953105f6100b15cd78f48ce0c8dbcb7ffb8d Reviewed-on: https://gerrit.libreoffice.org/11687 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- forms/qa/integration/forms/ListBox.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/forms/qa/integration/forms/ListBox.java b/forms/qa/integration/forms/ListBox.java index 1d1275127e82..b4412a0975c4 100644 --- a/forms/qa/integration/forms/ListBox.java +++ b/forms/qa/integration/forms/ListBox.java @@ -229,7 +229,9 @@ public class ListBox extends TestCase } // create the table taking all those foreign keys - m_database.createTable( new HsqlTableDescriptor( m_foreignKeyTableName, foreignKeyColumns.toArray( new HsqlColumnDescriptor[0] ) ) ); + m_database.createTable( new HsqlTableDescriptor( + m_foreignKeyTableName, + foreignKeyColumns.toArray( new HsqlColumnDescriptor[foreignKeyColumns.size()] ) ) ); // fill in some data foreignKeyInsertSQL.append( ")" ); XPreparedStatement statement = connection.prepareStatement( foreignKeyInsertSQL.toString() ); -- cgit v1.2.3