diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-14 14:40:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-14 20:56:14 +0200 |
commit | 23fbbea60768626b033f3c597d24193bb0d2dd79 (patch) | |
tree | 3e6fe3195a781994dfd730df1ee6e842337e11a7 /connectivity | |
parent | 23e3de725e32c05c615a7fd352edcc9f579e5bce (diff) |
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: I02eb573814e851fcb042f4a4018a3e41c24a68b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167634
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/FValue.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/commontools/FValue.cxx b/connectivity/source/commontools/FValue.cxx index a21cdb336413..799074d4207b 100644 --- a/connectivity/source/commontools/FValue.cxx +++ b/connectivity/source/commontools/FValue.cxx @@ -860,21 +860,21 @@ Any ORowSetValue::makeAny() const rValue <<= m_aValue.m_nDouble; break; case DataType::DATE: - OSL_ENSURE(m_aValue.m_pValue,"Value is null!"); + assert(m_aValue.m_pValue && "Value is null!"); rValue <<= *static_cast<Date*>(m_aValue.m_pValue); break; case DataType::TIME: - OSL_ENSURE(m_aValue.m_pValue,"Value is null!"); + assert(m_aValue.m_pValue && "Value is null!"); rValue <<= *static_cast<Time*>(m_aValue.m_pValue); break; case DataType::TIMESTAMP: - OSL_ENSURE(m_aValue.m_pValue,"Value is null!"); + assert(m_aValue.m_pValue && "Value is null!"); rValue <<= *static_cast<DateTime*>(m_aValue.m_pValue); break; case DataType::BINARY: case DataType::VARBINARY: case DataType::LONGVARBINARY: - OSL_ENSURE(m_aValue.m_pValue,"Value is null!"); + assert(m_aValue.m_pValue && "Value is null!"); rValue <<= *static_cast<Sequence<sal_Int8>*>(m_aValue.m_pValue); break; case DataType::BLOB: |