equal
deleted
inserted
replaced
332 } catch (IOException e) { |
332 } catch (IOException e) { |
333 notifyEvent(PrintJobEvent.JOB_FAILED); |
333 notifyEvent(PrintJobEvent.JOB_FAILED); |
334 throw new PrintException("can't get print data: " + e.toString()); |
334 throw new PrintException("can't get print data: " + e.toString()); |
335 } |
335 } |
336 |
336 |
|
337 if (data == null) { |
|
338 throw new PrintException("Null print data."); |
|
339 } |
|
340 |
337 if (flavor == null || (!service.isDocFlavorSupported(flavor))) { |
341 if (flavor == null || (!service.isDocFlavorSupported(flavor))) { |
338 notifyEvent(PrintJobEvent.JOB_FAILED); |
342 notifyEvent(PrintJobEvent.JOB_FAILED); |
339 throw new PrintJobFlavorException("invalid flavor", flavor); |
343 throw new PrintJobFlavorException("invalid flavor", flavor); |
340 } |
344 } |
341 |
345 |