Issue 98481 - crash when exporting document to pdf
Summary: crash when exporting document to pdf
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: DEV300 m39
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2009-01-26 13:50 UTC by sven.jacobi
Modified: 2013-01-29 21:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description sven.jacobi 2009-01-26 13:50:33 UTC
If exporting the document attached in issue 98402 I got a crash in 
sw/source/core/text/EnhancedPDFExportHelper.cxx line 390. There following code
leads to a crash because the iterator returned by find is empty.

FrmTagIdMap& rFrmTagIdMap = SwEnhancedPDFExportHelper::GetFrmTagIdMap();
const FrmTagIdMap::const_iterator aIter =  rFrmTagIdMap.find( pKey );
nReopenTag = (*aIter).second;

I am not sure, if it is an error if the key is not available, or if it
sufficient just to check the iterator.
And of course other people are not crashing, seems I have different pdf export