diff options
author | Robert Antoni Buj i Gelonch <robert.buj@gmail.com> | 2014-09-29 10:12:34 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-09-29 08:14:26 +0000 |
commit | 16417688ef874e55f27daafe5ddb2293a39a9423 (patch) | |
tree | 6b7cce87109152f0a3f3569e5b4e3eec93feb859 | |
parent | eba71a4937036bd2e1101a060a28a1ec45f702bf (diff) |
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 <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | forms/qa/integration/forms/ListBox.java | 4 |
1 files changed, 3 insertions, 1 deletions
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() ); |