Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320282 - Font ctor should not accept null name
Summary: Font ctor should not accept null name
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.4 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-19 11:27 EDT by Benjamin Muskalla CLA
Modified: 2010-07-22 00:00 EDT (History)
0 users

See Also:


Attachments
testcase (968 bytes, patch)
2010-07-19 11:27 EDT, Benjamin Muskalla CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Muskalla CLA 2010-07-19 11:27:15 EDT
Currently the Font ctor accepts null in case we had an empty string before as both of them end up with the same hash code. ResourceFactory#fontHashcode should not accept null as name parameter.
Comment 1 Benjamin Muskalla CLA 2010-07-19 11:27:38 EDT
Created attachment 174633 [details]
testcase

.
Comment 2 Ralf Sternberg CLA 2010-07-22 00:00:36 EDT
Fix and TestCase in CVS HEAD.