Community
Participate
Working Groups
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.
Check like other SWT methods do.
We now check for a null printer