diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-04-22 21:48:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-04-23 14:12:41 +0200 |
commit | e03603bcedf236c050173b921ab51db9aa8ce274 (patch) | |
tree | 01a5170513d80079e3da43b2026e598bd17601d9 /svx/source/unodraw/XPropertyTable.cxx | |
parent | 1597f3cf16aa6747c878a23f64669805d18e9c46 (diff) |
cid#1524676 try to convince coverity of the error of its ways
and
cid#1524745 Explicit null dereferenced
Change-Id: Id2fb9cf6d0a71712533e14981a33490c578db597
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150818
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/unodraw/XPropertyTable.cxx')
-rw-r--r-- | svx/source/unodraw/XPropertyTable.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/source/unodraw/XPropertyTable.cxx b/svx/source/unodraw/XPropertyTable.cxx index a66f7e37b8f7..45b0cd39c1ed 100644 --- a/svx/source/unodraw/XPropertyTable.cxx +++ b/svx/source/unodraw/XPropertyTable.cxx @@ -534,6 +534,7 @@ uno::Any SvxUnoXGradientTable::getAny( const XPropertyEntry* pEntry ) const noex { const XGradient& aXGradient = static_cast<const XGradientEntry*>(pEntry)->GetGradient(); awt::Gradient2 aGradient; + assert(aGradient.ColorStops.get() && "cid#1524745 aGradient.ColorStops._pSequence won't be null here"); // standard values aGradient.Style = aXGradient.GetGradientStyle(); |