fdo#65653, fdo#65619, fdo#65216: Missing check
Problem caused by commit:
16c9ce4877
This commit contains code deduplication.
The deduplication removed one needed check (rParam.xFiled.is()),
which causes segfault when member function of rParam.xField
is called inside columnMatchP().
Change-Id: Ibbdaa758dbbce4b76094e6cc120022ef276b30c4
This commit is contained in:
@@ -753,7 +753,7 @@ void OSQLParseNode::impl_parseLikeNodeToString_throw( OUStringBuffer& rString, c
|
||||
SQLParseNodeParameter aNewParam(rParam);
|
||||
//aNewParam.bQuote = sal_True; // why setting this to true? @see http://www.openoffice.org/issues/show_bug.cgi?id=75557
|
||||
|
||||
if (bSimple && !columnMatchP(m_aChildren[0], rParam))
|
||||
if (bSimple && (!rParam.xField.is() || !columnMatchP(m_aChildren[0], rParam)))
|
||||
m_aChildren[0]->impl_parseNodeToString_throw( rString, aNewParam, bSimple );
|
||||
|
||||
const OSQLParseNode* pPart2 = m_aChildren[1];
|
||||
|
Reference in New Issue
Block a user