Bug 5626 - StyledText - print does not check for null Printer argument
Summary: StyledText - print does not check for null Printer argument
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Knut Radloff CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-07 11:47 EST by Knut Radloff CLA
Modified: 2001-11-08 10:10 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Radloff CLA 2001-11-07 11:47:34 EST
Since passing in a null printer object does not present a valid operation 
StyledText should throw an IllegalArgumentException.
Presently it returns a StyledTextPrinter object which crashes with a NPE when 
trying to use it.
Comment 1 Lynne Kues CLA 2001-11-07 15:13:23 EST
Check like other SWT methods do.
Comment 2 Knut Radloff CLA 2001-11-08 10:10:39 EST
We now check for a null printer