Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Catch NULL property name when setPropertyValue | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Writer | Reporter: | bjcheny <companycy> | ||||||
Component: | code | Assignee: | AOO issues mailing list <issues> | ||||||
Status: | CLOSED NOT_AN_OOO_ISSUE | QA Contact: | |||||||
Severity: | Normal | ||||||||
Priority: | P3 | CC: | bjdujing, companycy | ||||||
Version: | 4.0.0-dev | ||||||||
Target Milestone: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Windows XP | ||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||
Developer Difficulty: | --- | ||||||||
Attachments: |
|
Description
bjcheny
2012-08-21 03:11:49 UTC
Created attachment 79016 [details]
patch for setPropertyValue
There are 3 changes which mainly include setPropertyValue for:
1. table
2. row
3. cell
Check the potential null Property Name before we serPropertyValue for it.
There is still some work left to re-factor some functions in this source file. Will take time to do it if possible. Created attachment 79032 [details]
patch for setPropertyValue
Change patch path from sw to main when creating.
When we add new Id into enum PropertyIds from PropertyIds.hxx, it's possible to miss addition related string in below function. const rtl::OUString& PropertyNameSupplier::GetName( PropertyIds eId ) const; If the string is lost, then the empty PropertyName may occur, and it's unknown behavior to setPropertyValue. Then as defense code, it's necessary to add such check. Mark as invalid. It's better to initialize the property name as some not null string. However, it's hard to test this kind of defense code. close invalid defect |