summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cui/source/options/dbregister.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/options/dbregister.cxx b/cui/source/options/dbregister.cxx
index f11a219b9020..4ea648141bd0 100644
--- a/cui/source/options/dbregister.cxx
+++ b/cui/source/options/dbregister.cxx
@@ -346,7 +346,7 @@ IMPL_LINK( DbRegistrationOptionsPage, HeaderEndDrag_Impl, HeaderBar*, pBar )
{
assert(pBar);
- if ( pBar && !pBar->GetCurItemId() )
+ if (!pBar || !pBar->GetCurItemId())
return 0;
if ( !pBar->IsItemMode() )