coverity#982460: Explicit null dereferenced

Change-Id: I64d559603bff0d618dce72927566531296984d3c
Reviewed-on: https://gerrit.libreoffice.org/3823
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
This commit is contained in:
Julien Nabet
2013-05-08 01:46:40 +02:00
committed by Noel Power
parent dc5bb7dfa7
commit 02beb61475

View File

@@ -381,11 +381,10 @@ XRMResMerge::XRMResMerge(
sFilename( rFilename ) ,
pResData( NULL )
{
if (!rMergeSource.isEmpty())
if (!rMergeSource.isEmpty() && sLanguage.equalsIgnoreAsciiCase("ALL"))
{
pMergeDataFile = new MergeDataFile(
rMergeSource, sInputFileName, false);
if( sLanguage.equalsIgnoreAsciiCase("ALL") )
{
aLanguages = pMergeDataFile->GetLanguages();
}
else