Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Assertions while opening Stylist | ||
---|---|---|---|
Product: | Writer | Reporter: | Oliver Specht <os_ooo> |
Component: | code | Assignee: | AOO issues mailing list <issues> |
Status: | CONFIRMED --- | QA Contact: | |
Severity: | Trivial | ||
Priority: | P3 | CC: | andreas.martens, issues, pb, philipp.lohmann |
Version: | 680m237 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
Oliver Specht
2007-12-04 15:29:03 UTC
Target set to 3.0 The ResMgr is missing in void SfxTemplateDialog_Impl::updateFamilyImages(). The corresponding ResId gets created in sfx2/source/dialog/templdlg.cxx 891 void SfxCommonTemplateDialog_Impl::ReadResource() 892 { 893 // globale Benutzer-Resource auslesen 894 USHORT i; 895 for(i = 0; i < MAX_FAMILIES; ++i) 896 pFamilyState[i] = 0; 897 898 SfxViewFrame* pViewFrame = pBindings->GetDispatcher_Impl()->GetFrame(); 899 pCurObjShell = pViewFrame->GetObjectShell(); 900 ResMgr* pMgr = pCurObjShell ? pCurObjShell->GetResMgr() : NULL; 901 ResId aFamId( DLG_STYLE_DESIGNER, *pMgr ); 902 aFamId.SetRT(RSC_SFX_STYLE_FAMILIES); 903 m_pStyleFamiliesId = new ResId( aFamId.GetId(), *pMgr ); From the looks of it seems that pCurObjShell is NULL: ->pl: Sorry to disappoint you but pCurObjShell is not NULL. Which must then mean that pCurObjShell->GetResMgr() is NULL. pb: No, pCurObjShell->GetResMgr() is not NULL. The problem is here: sal_Bool SfxStyleFamilies::updateImages() { ... ::svt::OLocalResourceAccess aLocalRes( _rId ); // raises the assertion ... } Frank please have a look. Thx. . fs->pl: Actually, in line 1530 of resmgr.cxx, a ResId is created with a res manager which is NULL: ResId aId( rId.GetId(), *pFallbackResMgr ); pFallbackResMgr is NULL here. While I consider the line questionable in itself (why de-referencing a pointer which obviously can be NULL), the deeper reason seems to be that one of the involved resources is in fact not available. That is, the OLocalResourceAccess works okay, it is just fed with a non-existing resource. pl->fs: dang, you're right, in that place it should of course be pFallback, not pFallbackResMgr. I'll create a separate issue for that. However there is still a missing resource here which needs to be fixed, too. separate issue for ResMgr fallback is issue 83337 pb: too late for 3.0 -> 3.x. grabbing issue Reset assigne to the default "issues@openoffice.apache.org". |