From d575b23c187fb66bbe13c4fe6df8a8cb1ccbc135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 13 Mar 2014 10:50:11 +0000 Subject: [PATCH] coverity#705817 Dereference before null check Change-Id: Ia96b3e78b65ebea0d74267468906e9bda2ae3da6 --- framework/source/uielement/menubarmerger.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/source/uielement/menubarmerger.cxx b/framework/source/uielement/menubarmerger.cxx index b814e770ff50..f74a72246f66 100644 --- a/framework/source/uielement/menubarmerger.cxx +++ b/framework/source/uielement/menubarmerger.cxx @@ -132,7 +132,7 @@ ReferencePathInfo MenuBarMerger::FindReferencePath( } i++; } - while (( pCurrMenu != 0 ) && ( i < nCount ) && ( eResult == RP_OK )); + while ((i < nCount) && (eResult == RP_OK)); aResult.pPopupMenu = pCurrMenu; aResult.nPos = nPos;