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:
parent
d1fdaafd7c
commit
a95ecd8b65
1 changed files with 2 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue