From 0dde0ea5b79bf6ae8532f9ad0550a908f29bc253 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 7 Mar 2014 11:20:10 +0000 Subject: coverity#982454 Dereference after null check Change-Id: I405db209c9277ba47b26d2a0970f4265e190a7c7 --- cui/source/options/optpath.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cui') diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx index 8e8758d4e93c..b2daf493944d 100644 --- a/cui/source/options/optpath.cxx +++ b/cui/source/options/optpath.cxx @@ -667,7 +667,7 @@ IMPL_LINK( SvxPathTabPage, HeaderSelect_Impl, HeaderBar*, pBar ) IMPL_LINK( SvxPathTabPage, HeaderEndDrag_Impl, HeaderBar*, pBar ) { - if ( pBar && !pBar->GetCurItemId() ) + if (!pBar || !pBar->GetCurItemId()) return 0; if ( !pBar->IsItemMode() ) -- cgit