Kaydet (Commit) a95ecd8b authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Lionel Elie Mamane

fdo#69772 make StringsFromResultSet more robust

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

Change-Id: I81e35c77116e2e0302da86f03f7e757a52e97b29
üst d1fdaafd
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment