diff options
-rw-r--r-- | svx/source/dialog/dlgctrl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index 2364a2a1c905..8bfa03d92e91 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -1389,7 +1389,7 @@ void GradientLB::Modify( const XGradientEntry& rEntry, sal_Int32 nPos, const Bit void GradientLB::SelectEntryByList( const XGradientListRef &pList, const OUString& rStr, const XGradient& rGradient, sal_uInt16 nDist ) { - long nCount = pList->Count(); + long nCount = pList.get() ? pList->Count() : 0; XGradientEntry* pEntry; bool bFound = false; OUString aStr; |