fdo#69772 make StringsFromResultSet more robust

Correctly handle case argument _xResultSet == null,
instead of throwing a NullPointerException.

Change-Id: I81e35c77116e2e0302da86f03f7e757a52e97b29
This commit is contained in:
Julien Nabet 2013-10-24 08:30:41 +02:00 committed by Lionel Elie Mamane
parent d1fdaafd7c
commit a95ecd8b65

View file

@ -959,6 +959,8 @@ public class DBMetaData
private String[] StringsFromResultSet(XResultSet _xResultSet, int _icol)
{
String[] sColValues = null;
if (_xResultSet == null)
return sColValues;
try
{
XRow xRow = UnoRuntime.queryInterface( XRow.class, _xResultSet );