From 834bdb3d3ecb801ad23b1f9a7b3473e2483aa902 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Thu, 19 May 2011 11:52:37 +0200 Subject: avoid possible NULL ptr deref. --- tools/source/rc/resmgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx index f45d91b7c349..5a44dfa24c95 100644 --- a/tools/source/rc/resmgr.cxx +++ b/tools/source/rc/resmgr.cxx @@ -465,7 +465,7 @@ InternalResMgr* ResMgrContainer::getNextFallback( InternalResMgr* pMgr ) } InternalResMgr* pNext = getResMgr( pMgr->aPrefix, aLocale, pMgr->bSingular ); // prevent recursion - if( pNext == pMgr || pNext->aResName.equals( pMgr->aResName ) ) + if( pNext == pMgr || ( pNext && pNext->aResName.equals( pMgr->aResName ) ) ) { if( pNext->bSingular ) delete pNext; -- cgit