summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-07-04 12:35:22 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-07-04 13:31:37 +0200
commitd3c3ba075c485e97c658d145319b36a69c60a5c8 (patch)
tree061f261f81f6bd20b9f1d9acbfb7ead47f4e69a7 /vcl
parenta387d3c96c414da65396957b18df3202a720e2ba (diff)
coverity#736163 Dereference Null return
Change-Id: I62046a619315d53dbeefbe0ebd26d24917adca14
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/splitwin.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index be04473b45d1..0f2058270316 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -2637,7 +2637,6 @@ void SplitWindow::InsertItem( sal_uInt16 nId, Window* pWindow, long nSize,
{
#ifdef DBG_UTIL
sal_uInt16 nDbgDummy;
- DBG_ASSERT( ImplFindSet( mpMainSet, nSetId ), "SplitWindow::InsertItem() - Set not exists" );
DBG_ASSERT( !ImplFindItem( mpMainSet, nId, nDbgDummy ), "SplitWindow::InsertItem() - Id already exists" );
#endif
@@ -2646,6 +2645,13 @@ void SplitWindow::InsertItem( sal_uInt16 nId, Window* pWindow, long nSize,
nSize = 1;
ImplSplitSet* pSet = ImplFindSet( mpMainSet, nSetId );
+#ifdef DBG_UTIL
+ DBG_ASSERT( pSet, "SplitWindow::InsertItem() - Set not exists" );
+#endif
+ if(!pSet)
+ {
+ return;
+ }
ImplSplitSet* pNewSet;
ImplSplitItem* pItem;