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:
committed by
Lionel Elie Mamane
parent
d1fdaafd7c
commit
a95ecd8b65
@@ -959,6 +959,8 @@ public class DBMetaData
|
|||||||
private String[] StringsFromResultSet(XResultSet _xResultSet, int _icol)
|
private String[] StringsFromResultSet(XResultSet _xResultSet, int _icol)
|
||||||
{
|
{
|
||||||
String[] sColValues = null;
|
String[] sColValues = null;
|
||||||
|
if (_xResultSet == null)
|
||||||
|
return sColValues;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
XRow xRow = UnoRuntime.queryInterface( XRow.class, _xResultSet );
|
XRow xRow = UnoRuntime.queryInterface( XRow.class, _xResultSet );
|
||||||
|
Reference in New Issue
Block a user