Kaydet (Commit) aef2111f authored tarafından Michael Stahl's avatar Michael Stahl

l10ntools: helpex: don't crash if the file can't be parsed; return error

Change-Id: I637f8486b0774b399ed5e250868d756c944e50f6
üst b827f6f8
......@@ -152,6 +152,11 @@ bool HelpParser::Merge( const OString &rPOFile, const OString &rDestinationFile,
//TODO: explicit BOM handling?
XMLFile* xmlfile = ( aParser.Execute( sHelpFile, new XMLFile( OString('0') ) ) );
if (!xmlfile)
{
SAL_WARN("l10ntools", "could not parse " << sHelpFile);
return false;
}
bool hasNoError = MergeSingleFile( xmlfile , pMergeDataFile , rLanguage , rDestinationFile );
delete xmlfile;
return hasNoError;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment