diff --git a/connectivity/source/drivers/macab/MacabStatement.cxx b/connectivity/source/drivers/macab/MacabStatement.cxx index 7d334018377f..7756f4fc6f83 100644 --- a/connectivity/source/drivers/macab/MacabStatement.cxx +++ b/connectivity/source/drivers/macab/MacabStatement.cxx @@ -460,7 +460,7 @@ OSL_TRACE("Mac OS Address book - SQL Request: %s", OUtoCStr(sql)); impl_throwError(STR_QUERY_TOO_COMPLEX); } - m_xResultSet.set(pResult); + m_xResultSet = Reference(pResult);; return xRS; }