From 21cea08139adf20fe86f5bc5724e9e22d7a627b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 24 Feb 2014 09:27:44 +0000 Subject: [PATCH] coverity#735801 Dereference after null check Change-Id: I4a403098388bdb7f4f09242fcd71a50d38fc630e --- sc/source/ui/app/inputhdl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index 026a5ba053ba..b629b51a810d 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -2992,8 +2992,8 @@ void ScInputHandler::SetReference( const ScRange& rRef, ScDocument* pDoc ) } else { - if ( ( rRef.aStart.Tab() != aCursorPos.Tab() || - rRef.aStart.Tab() != rRef.aEnd.Tab() ) && pDoc ) + if ( rRef.aStart.Tab() != aCursorPos.Tab() || + rRef.aStart.Tab() != rRef.aEnd.Tab() ) aRefStr = rRef.Format(SCA_VALID|SCA_TAB_3D, pDoc, aAddrDetails); else aRefStr = rRef.Format(SCA_VALID, pDoc, aAddrDetails);