Map<String, String> attributes = printJob.getAttributes();
if (userName == null) {
userName = CupsClient.DEFAULT_USER;
}
if (attributes == null) {
<BUG>attributes = new HashMap<String, String>();
}</BUG>
attributes.put("requesting-user-name", userName);
attributes.put("job-name", jobName);
<BUG>String copiesString = null;
StringBuffer rangesString = new StringBuffer();
</BUG>
if (copies > 0) {// other values are considered bad value by CUPS

Map<String, String> attributes = printJob.getAttributes();
if (userName == null) {
userName = CupsClient.DEFAULT_USER;
}
if (attributes == null) {
attributes = new HashMap<>();
}
attributes.put("requesting-user-name", userName);
attributes.put("job-name", jobName);
String copiesString;
StringBuilder rangesString = new StringBuilder();
if (copies > 0) {// other values are considered bad value by CUPS
