connectivity/source/commontools/FValue.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 23fbbea60768626b033f3c597d24193bb0d2dd79
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Tue May 14 14:40:25 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Tue May 14 20:56:14 2024 +0200

    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.mcnam...@collabora.com>

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:

Reply via email to